PHPÅäÖÃMYSQL
ÕâÁ½ÌìÔÚµ·¹ÄPHP£¬È¥ecshopºÍphpwindÏÂÔØÁËÒ»¸öÉ̳ǺÍÒ»¸öÂÛ̳¡£Á½¸ö¶¼ÐèÒª°²×°mysqlµÄ·þÎñÆ÷£¬ÓÚÊÇÎÒ°´Õս̳̽øÐа²×°¡£½á¹û·¢ÏÖÿ´Î¶¼Êǵ½Á¬½ÓÊý¾Ý¿âµÄµØ·½¾Í±ä³É¿Õ°×Ò³ÁË¡£ËÀ»îÕÒ²»³öÀ´ÎÊÌâ¡£ºóÀ´ÔÚÓཨµÄÖ¸µ¼Ï£¬·¢ÏÖÔÀ´ÊÇPHPµÄ°æ±¾¹ý¸ß¡£ÕæÊÇÓôÃÆ¡£
ÏÖÔÚÎÒ°ÑÎÒ×î½üÅäÖõĹý³Ìд³öÀ´¡£
ËùÐèÈí¼þ£º
apache_2.2.14-win32-x86-no_ssl.msi
ZendOptimizer-3.3.0a-Windows-i386.zip
php-5.2.12-Win32.zip£¨ÎÒÓõÄÊÇ5.3µÄ£¬ËùÒÔÒ»Ö±ÅäÖò»³É¹¦£¬ÓÃÕâ¸ö°æ±¾µÄÒ»´Î³É¹¦¡£¸ã²»Çå³þɶÎÊÌâ¡££©
mysql-essential-5.1.40-win32.zip
PHPWind_GBK_7.5.zip
ECShop_V2.7.1_GBK_Release1228.zip
°²×°²½Ö裺
Ò»¡¢°²×°apach
¶þ¡¢½âѹËõphp5.2.12
Èý¡¢°²×°ZendOptimizer
ËÄ¡¢ÅäÖÃapache¿ÉÒÔ·ÃÎÊÁ½¸öÍøÕ¾¡£ÅäÖÃhttpd.conf¿ÉÒÔ½âÎöÒ³ÃæÖÐphp´úÂë
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
Îå¡¢ÅäÖÃapacheµÄhttpd.conf£¬ÓÃÀ´¼ÓÔؽâÎöphpËùÐèÒªµÄÄ£¿é
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP/php"
LoadModule php5_module "C:/PHP/php/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Áù¡¢°Ñphp-5.2.12ÏÂÃæµÄphp.ini-dist¸ÃÃû³Éphp.ini×öÒ»ÏÂÅäÖÃ
ÕÒµ½extension_dir = "C:\PHP\php\ext" ºóÃæµÄ·¾¶¸Ä³ÉÄãµÄphpËùÔÚ·¾¶
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
Ç°ÃæµÄ×¢ÊÍ·ûÈ¥µô(;ºÅ)
×îºóÔö¼ÓzendµÄÅäÖÃ
[Zend]
zend_extension_manager.optimizer_ts="C:\PHP\zend\lib\Optimizer-3.3.0"
zend_extension_ts="C:\PHP\zend\lib\ZendExtensionManager.dll"
È»ºó°ÑphpĿ¼ÀïÃæµÄ
libmysql.dllºÍlibpq.dll¸´ÖƵ½ÏµÍ³Ä¿Â¼ÏµÄsystem32ÏÂÃæ¡£
ÁíÍâ¸ü¸ÄϵͳµÄpath·¾¶Ö¸Ïòµ½phpÏÂÃæµÄextĿ¼¡£
ÕâÑù¾Í¿ÉÒÔÕý³£Ê¹php·ÃÎÊmysqlµÄ·þÎñÆ÷ÁË¡£
Ïà¹ØÎĵµ£º
¡¾PHPϵÁн̡̳¿(4)½²ÊöÁËPHPµÄ±äÁ¿£ºhttp://blog.csdn.net/rocket5725/archive/2010/01/08/5159704.aspx
±¾½ÚÖ÷Òª½éÉÜPHPÖеij£Á¿£¬Ö÷Òª°üÀ¨ÆäÓï·¨ºÍÔ¤¶¨Òå³£Á¿µÄ½éÉÜ¡£
³£Á¿ÊÇÒ»¸ö¼òµ¥ÖµµÄ±êʶ·û£¨Ãû×Ö£©¡£ÈçͬÆäÃû³ÆËù°µÊ¾µÄ£¬Ôڽű¾Ö´ÐÐÆÚ¼ä¸ÃÖµ²»Äܸı䣨³ýÁËËùνµÄħÊõ³£Á¿£¬ËüÃÇÆäʵ²»Êdz£Á¿£©¡£³£Á¿Ä¬ÈÏΪ´óСдà ......
±í´ïʽÊÇ PHP ×îÖØÒªµÄ»ùʯ¡£ÔÚ PHP ÖУ¬¼¸ºõÄãËùдµÄÈκζ«Î÷¶¼ÊÇÒ»¸ö±í´ïʽ¡£¼òµ¥µ«È´×ȷµÄ¶¨ÒåÒ»¸ö±í´ïʽµÄ·½Ê½¾ÍÊÇ“anything that has a value”¡£
×î»ù±¾µÄ±í´ïʽÐÎʽÊdz£Á¿ºÍ±äÁ¿¡£µ±Äã¼üÈë“$a = 5”£¬¼´½«Öµ '5' ·ÖÅä¸ø±äÁ¿ $a¡£'5'£¬ºÜÃ÷ÏÔ£¬ÖµÎª 5£¬»»¾ä»°Ëµ '5' ÊÇÒ»¸öֵΪ5µÄ±í´ïʽ£ ......
ͨ³£¿ª·¢ÈËÔ±ÔÚд³ÌÐòµÄʱºò£¬ÍùÍùÊÇ°ÑÒѾÉè¼ÆºÃ»òÕß¹¹Ë¼ºÃµÄÔËËãÂß¼£¬Ö±½ÓÓñà³ÌÓïÑÔ·Òë³öÀ´¡£³ÌÐòÄÜ˳Àû±àÒëͨ¹ý£¬ÄÇÊǺÜÁîÈ˸ßÐ˵ÄÊÂÇé¡£Èç¹û´Ëʱ³ÌÐòµÄÔËÐÐʱ¼ä»¹ÄܽÓÊÜ£¬¾Í»á³Á½þÔÚд´úÂëµÄ³É¾Í¸Ðµ±ÖУ¬³£³£ÔÚÕâ¸ö¹ý³ÌÖкöÂÔ´úÂëµÄÓÅ»¯¡£Ö»Óе±³ÌÐòÔËÐÐËÙ¶ÈÊܵ½Ó°Ïìʱ£¬²Å»Ø¹ýÍ·È¥¿¼ÂÇÓÅ»¯µÄÊÂÇé¡£
ʲôÊÇËã·¨µÄʱ ......
¡¡ÎÒÃÇ°ÑÏÂÔصÄÈý¸öÈí¼þ°ü·Åµ½/var/localĿ¼Ï£¨ÕâÊDZÊÕ߸öÈ˵ÄÏ°¹ß£©£¬ËüÃǶ¼ÊÇtar.gz°ü£¬¿ÉÒÔÓÃÃüÁîtar -xzpvf °üÃû£¬°ÑËüÃÇÔÚµ±Ç°Ä¿Â¼£¨/var/local/£©Öн⿪£º
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
¡¡¡¡½â°üºó¿ÉÒÔ¿ªÊ¼½øÈëÕýʽ°²×°¡£ ......
getenv£¨£© È¡µÃϵͳµÄ»·¾³±äÁ¿£¨Ô¤¶¨Òå±äÁ¿£©
$spager=getenv('SERVER_NAME');
“PHP_SELF”
µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óë document root Ïà¹Ø¡£¾ÙÀýÀ´Ëµ£¬ÔÚ URL µØַΪ [url]http://example.com/test.php/foo.bar[/url] µÄ½Å±¾ÖÐʹÓà $_SERVER['PHP_SELF'] ½«»áµÃµ½ /test.php/foo.bar Õâ¸ö½á ......