php¼Ç¼
¡¾2010/2/4¡¿
1:
·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php.ini,php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:
ÅäÖÃÁËpath,c:\phpºÍc:\php\ext,(²»¹ýºÃÏóûʲô×÷ÓÃ)
3:
ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔÒò¾ÍÊÇ:
httpd.exe: Syntax error on line 67 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb
5\xc4\xc4\xa3\xbf\xe9\xa1\xa3
php°æ±¾ºÍapache°æ±¾²»Ò»ÖÂ,»¹ÊǹÙÍøÉϵϰapache2.2.xµÄ±ØÐëºÍphp5.2.0¼°ÒÔºó°æ±¾ÁªºÏʹÓÃ.
µ«Êǹ«Ë¾·þÎñÆ÷¾¹È»ÒªÇóÊÇapache2.2.x + php5.1.x!
(µÚ¶þÌì²¹³äÉϵģ¬ÉÏÍøËÑË÷ÁËһЩ×ÊÁÏ£¬Õâ¸ö×éºÏ°æ±¾È·ÊµÓÐÎÊÌ⣬²»¹ýÒ²ÊÇ¿ÉÒÔͨ¹ý´ò²¹¶¡À´½â¾öµÄ£¬½â¾öµÄ·½·¨ÊÇ£º
ÏÂÔØ Õâ¸öÎļþ ²¢½âѹ.¹²ÓÐÈý¸öÎļþ.
vcredist_x86.exe
php5apache2.dll
httpd.exe.manifest
ºÃ,¿ªÊ¼
1.½« php5apache2.dll ¸²¸ÇµôÄãÔÀ´PHPĿ¼Ï嵀 php5apache2.dll Îļþ.
2.½« httpd.exe.manifest Îļþ¸´ÖƵ½ÄãµÄapache°²×°Ä¿Â¼ÏµÄbinÎļþ¼ÐÏÂ.
3.Ë«»÷ÔËÐÐvcredist_x86.exe°²×°.(Èç¹ûÄúµÄϵͳÀïÒѰ²×°ÁË .NET framework 2.¾Í¿ÉÒÔÊ¡µôÕâÒ»²½)
×öÍêÕâÈý²½ÒԺ󣬼ǵðÑphp5.1.xµÄÄÇ6¸öÎļþÌæ»»µôÒÔǰµÄphp5.2.xµÄÎļþ£¬²»È»»á³öÏÖhttpd.exeÄÚ²¿´íÎó£¬Ê²Ã´ÄÚ´æ²»ÄܶÁµÄÎÊÌâ¡£
)
4:
ÈÃphp¸ø¿Í»§·µ»Ø´íÎóÐÅÏ¢:
ÔÚphp.iniÖÐÐÞ¸Ä:
display-errors=on
5:
a:HTTP 500 ·þÎñÆ÷ÄÚ²¿´íÎó
b:Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DatabaseTool.php on line 13
½â¾ö·½°¸:
ÔÚphp.iniÖÐ:
extension=php_mysql.dll,È¥µô¸ÃÐÐÇ°ÃæµÄ·ÖºÅ,È»ºóÖØÆôapache.
6:
²»Èÿͻ§¶ËÏÔʾnoticeÐÅÏ¢
a:error_reporting = E_ALL & ~E_NOTICE,È¥µôÇ°ÃæµÄ;
b:error_reporting = E_ALL,ÔÚÕâÒ»ÐÐÇ°Ãæ¼ÓÉÏ;±£´æ,ÖØÆôapache
7:
Fatal error: Call to undefined function socket_create()
½«php.iniÀïµÄ;extension=php_sockets.dllÇ°ÃæµÄ;ºÅÈ¥µô
8:
zend optimizer¶Ôphp½øÐÐÓÅ»¯:
Õâ¸öÎÒÓõÄÊÇZendOptimizer3.3.3Windowsi386,ɵ¹Ïʽ°²×
Ïà¹ØÎĵµ£º
apache_2.2.8+ mysql_5.1.41+ php-5.2.12+ phpMyAdmin-3.2.5
1,°²×°apacheĬÈϰ²×°¼´¿É
2,°ÑÏÂÔØµÄphp5.2.12½âѹ°Ñ½âѹÎļþ¼ÐµÄËùÓÐÎļþ¸´ÖƵ½DÅÌPHPÎļþ¼ÐÖÐ:
3,´ò¿ªPHPÎļþ¼ÐÖаÑphp.ini-dist¸ÄΪphp.ini²¢´ò¿ª²¢°Ñ
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mhash.dll
extension=php_mime ......
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/03/1-10/
ÓëÆäËû±à³ÌÓïÑÔ²»Í¬µÄÊÇ£ºPHPµÄÊý¾ÝÀàÐͲ»ÊÇÓɳÌÐòÔ±ÔÚ¶¨Òå±äÁ¿µÄʱºò¾ö¶¨µÄ£¬¶øÊÇÓÉPHPÔÚ³ÌÐòÔËÐйý³ÌÖж¨Òå¡£
PHP¹²Ö§³Ö8ÖÖÊý¾ÝÀàÐÍ£ºÕûÐÍ£¨integer£©¡¢¸¡µãÐÍ£¨float£©¡¢×Ö·û´®ÐÍ£¨string£©ºÍ²¼¶ûÐÍ£¨Boolean£©ËÄÖÖ±êÁ¿ÀàÐÍ£¬Êý×飨array£©ºÍ¶ÔÏó£¨object£ ......
ÕâÀïҲǿÁÒÍÆ¼öYII¿ò¼Ü£¬Õâ¸öÄêÇáµÄ¿ò¼ÜÓÉÃÀ¹ú»ªÈË¿ª·¢£¬Ãû½ÐѦǿ¡£Yii FramworkÊÇ2009×î¼ÑPHP¿ò¼Ü¡£
Yii ÊÇÒ»¸ö»ùÓÚ×é¼þ¡¢ÓÃÓÚ¿ª·¢´óÐÍ Web Ó¦ÓõĸßÐÔÄÜ PHP ¿ò¼Ü¡£Ëü½« Web ±à³ÌÖеĿÉÖØÓÃÐÔ·¢»Óµ½¼«Ö£¬Äܹ»ÏÔÖø¼ÓËÙ¿ª·¢½ø³Ì¡£Yii£¨¶Á×÷“Ò×”£©´ú±í¼òµ¥(easy)¡¢¸ßЧ( ......
<?php
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="GBK" ?>';
echo '<users>';
echo '<user>';
echo '<name>'; echo 'СС²ËÄñ';
echo '</name>';
echo '<age>';
echo '24';
  ......