Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

php¿ª·¢¿ò¼Ü´î½¨

1.   Windows XP »·¾³Ï°²×° Apache HTTP Server 2.2.8
 
¸ÃÕ½ڽ²ÊöÈçºÎÔÚ Windows XP »·¾³Ï°²×° Apache HTTP Server¡£
ÏÂÔØ Apache HTTP Server 2.2.8
Apache µÄ¹Ù·½ÍøÕ¾ÊÇ http://apache.org/¡£
Apache HTTP Server µÄÏÂÔØÒ³ÃæÊÇ http://httpd.apache.org/download.cgi£¬¸ÃÒ³ÖлáÌáʾÄã¿É¹©ÏÂÔصľµÏñ (Mirror) Õ¾µã£¬±ÈÈç http://apache.mirror.phpchina.com¡£ÔÚÕâ¸ö¾µÏñÕ¾µã£¬Äã»á¿´µ½ºÜ¶àĿ¼£¬ÇëÑ¡Ôñ httpd/ Ŀ¼£¬È»ºóÑ¡Ôñ binaries/ £¬È»ºóÑ¡Ôñ win32/£¬È»ºóÑ¡Ôñ apache_2.2.8-win32-x86-no_ssl.msi ÏÂÔØ¡£
»òÕßÄã¿ÉÒÔÖ±½ÓÊäÈë¸Ã°²×°ÎļþËùÔÚÒ³ÃæµÄ URL ·¾¶£º http://apache.mirror.phpchina.com/httpd/binaries/win32/¡£
ÔÚ Windows XP »·¾³Ï°²×° Apache HTTP Server 2.2.8
Ë«»÷ apache_2.2.8-win32-x86-no_ssl.msi Îļþ£¬¿ªÊ¼°²×° Apache HTTP Server 2.2.8¡£
Äã»á¿´µ½ÒÔÏ»­Ã棺
µã»÷ Next£¬È»ºóÑ¡Ôñ I accept the terms in the license agreeement£¬
µã»÷ Next £¬»á¿´µ½ÏÂͼ£º
È»ºóµã»÷ Next£¬½øÈë Server Information »­Ã棬ÈçÏÂͼ£º
ÔÚ Network Domain µÄÎı¾¿òÀïÊäÈë localhost¡£
ÔÚ Server Name µÄÎı¾¿òÀïÊäÈë localhost¡£
ÔÚ Administrator's Email Address ÀïËæ±ãÊäÈëÒ»¸ö Email µØÖ·
È»ºóÑ¡Ôñ for All Users, on Port 80, as a Service -- Recommended¡£
µã»÷ Next£¬Ñ¡Ôñ Typical £¬ÈçÏÂͼ£º
µã»÷ Next£¬½øÈë Destination Folder »­Ã棬ÈçÏÂͼ£º
µã»÷ Next£¬»á¿´µ½°²×°Íê³É»­Ã棬ÈçÏÂͼ£¬µã»÷ Finish ½áÊø°²×°¡£
Èç¹ûÄ㻹¿´µ½ÏÂÃæÕâ¸öºÚºÚ Dos ½çÃ棬Ç벻ͬµ£ÐÄ£¬°´ ESC ¼üÍ˳ö¼´¿É¡£µÈ»áÎÒÃÇÐèÒªÐÞ¸ÄһϠApache HTTP Server µÄÅäÖÃÎļþ¡£
ÐÞ¸Ä Apache HTTP Server ÅäÖÃÎļþ
°²×°Íê Apache HTTP Server Ö®ºó£¬»¹ÐèÒªÐÞ¸ÄÒ»ÏÂÅäÖÃÎļþ¡£
Apache µÄÅäÖÃÎļþ·¾¶ÈçÏ£º
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
°²È«Æð¼û£¬½¨ÒéÄãÏȱ¸·ÝÒ»ÏÂÕâ¸öÎļþ¡£
È»ºóÓà Notepad ´ò¿ªÕâ¸öÎļþ£¬Ð޸Ķ˿ÚÉèÖá£
½« Listen 80 ¸Ä³É Listen 8080
½« ServerName localhost:80 ¸Ä³É ServerName localhost:8080¡£
±£´æÎļþ¡£
Æô¶¯ Apache Service
ÐÞ¸ÄÍêÅäÖÃÎļþÖ®ºó£¬¿ÉÒÔÆô¶¯ Apache HTTP Server ÁË¡£
ÔÚ Windows ¿ªÊ¼²Ëµ¥Ñ¡Ôñ Start --> All Programs --> Apache HTTP Server 2.2 --> Monitor Apache Servers£¬µã»÷ºó£¬Äã»á¿´µ½ÔÚ Taskbar ÓиöСºìÍ


Ïà¹ØÎĵµ£º

windowsÏÂapache,mysql,php°²×°ÈÕ¼Ç

½ñÌì·ÏÁËÒ»ÌìµÄʱ¼äÀ´´Óаѻ·¾³´î½¨ºÃ£º×ö¸ö±Ê¼Ç
°²×°Ë³Ðò£º
apache->php->mysql
һЩעÒâµÄµØ·½¼ÇÏÂÀ´°É£º
1. apache Ö§³Ö php
    apache ÅäÖÃÎļþÏ£ºÐèÒªÐ޸ĵĵط½£º
       i.  PHPIniDir "F:/programs/php/"
    &n ......

php ѧϰ

<?php
    $txt = 'Hello world';
    echo $txt;
?>
<br/>
×Ö·û´®Á¬½Ó(.)
<br/>
echo 'Hello world'. "" . '1234'  Êä³ö£º 
<?php
    $txt1 = 'Hello world';
    $txt2 = '1234';
    ......

ÃæÏò¶ÔÏ󿪷¢Ñ§Ï°£¨Î壩£¨PHPµÚ¶þʮһ½²£©

ÕâÒ»½Ú¿ÎµÄÄÚÈݱȽÏÉÙ£¬Ö÷Òª½²Á˳éÏóÀàºÍ³éÏó·½·¨¡£
³éÏóÀàÊÇÖ¸º¬ÓгéÏó·½·¨µÄÀ࣬³éÏóÀàÖÁÉÙÒª°üº¬Ò»¸ö³éÏó·½·¨¡£ÓÃabstract¹Ø¼ü×Ö¶¨Òå³éÏó·½·¨ºÍÀà¡£
³éÏó·½·¨µÄÌصãÊÇÖ»Óз½·¨Ãû£¬²»°üº¬·½·¨Ì壬¼´Ã»Óз½·¨ÊµÏÖ£¬¾ßÌåÌåÏÖÔÚ´úÂëÖоÍÊdzéÏó·½·¨²»°üº¬´óÀ¨ºÅ{}¡£
³éÏóÀ಻Äܱ»ÊµÀý»¯£¬Ö»Äܱ»¼Ì³Ð£¬¼Ì³ÐµÄ×ÓÀà±ØÐëÖØÔظ¸ ......

Apache + PHP + MySql °²×°


ËùÐèÈí¼þ£¨×¢Òâ°æ±¾£¡£©£º
Apache2.2.3 
PHP5.1.5 
MySQL5.0.24
ÕâÈý¸öÈí¼þ¶¼ÊÇÃâ·ÑµÄ£¬¿É´Ó¹ÙÍøÉÏÏÂÔØ£¬Ä¿Ç°ÎÒËùÓеÄÈí¼þÃûΪ£º
apache_2.2.3-win32-x86-no_ssl.msi 
mysql-5.0.24-win32.zip 
php-5.1.5-Win32.zip
»ùÓÚwindows²Ù×÷ϵͳ£¬ÔÚWindows XPÏ°²×°Ê¹Óãº
1¡¢°²×°¹ý³Ì£º  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ