ת£ºApache+mysql+phpÔÚwindowsϵÄÅäÖÃ(³É¹¦)
http://hi.baidu.com/fish124423/blog/item/c6f9f310190dd779ca80c456.html½â¾öerror trying access httpd. conf file.you will need to manually configure theµÄÅäÖÃÎÊÌâ
Apache+mysql+phpÔÚwindowsϵÄÅäÖÃ(³É¹¦)
2008-12-16 14:49
ApcheÏÂÔØµØµã£ºhttp://www.apache/org
Or http://www.51cto.com/html/2005/1021/8911.htm
Php ÏÂÔØµØµã£ºhttp://www.php.net
MysqlÏÂÔØµØµã£ºhttp://www.mysql.com
»¨Á½Ììʱ¼ä£¬½â¾öÁËFatal error: Call to undefined function mysql_connect()Õâ¸öÎÊÌâÒÔ¼°Error trying access httpd.conf file.You will need to manually configure theÕâ¸öÎÊÌ⣬Ïêϸ˵˵°É£¡
1¡¢
£¨1£©³öÏÖFatal error: Call to undefined function mysql_connect()Õâ¸öÎÊÌâÊÇÒòΪÄãµÄÎļþÅäÖò»¶Ô£¡
°²×°Apcheûʲô´óÊÂÇ飬°²×°ºÃÁ˼üÈ룺http://127.0.0.1 ³öÏÖit work ¾ÍÐÐÁË
Èç¹ûûÓеϰ£¬ÕÒÎÒÒ²ÐУ¡QQ£º124312457 »¶Ó£¡
£¨2£©webÎļþÒª·Åµ½Ò»¸öרÃŵÄÎļþÀïÃæ£¬ËüĬÈϵÄÊÇÄãµÄapacheµÄ°²×°ÎļþhtdocsÏ£¬Æäʵ127.0.0.1ºÍlocalhostµÈ¼Û£¬ËûÃǶ¼ÊÇhtdocsÕâ¸öĿ¼¡£
£¨3£©½âѹPhp5.1.2-Win32.zip£¬²»Òª°²×°£¬Ö±½Ó°Ñphp-5.2.6-Win32¿½µ½ÄãÏëÒªµÄµØ·½£¬±ÊÕß¿½µ½D£º£¬²¢ÇÒ±ÊÕß°ÑPhp5.1.2-Win32¸ÄÃûΪphp£¬Ò²¾ÍÊÇPhp5.1.2-Win32µÄÄÚÈݷŲ»·Åµ½d:\phpÖУ¬ÎªÊ²Ã´²»¿½µ½D:\Program FilesÀïÃæ£¬Ò²ÊÇÓÐÃûÌõ쬴ø»ØËµ£¡
£¨4£©¿½ÍêÒÔºóÔÚphp.ini-dist¸Ä³Æphp.ini£¬ÕâÒ²¾ÍÊÇËùνµÄphp.iniÎļþÁË£¬ÕÒµ½short_open_tag = On´ËÑ¡ÏîÑ¡ÔñÊÇ·ñ´ò¿ª¼òд±êÇ©¼´£ºÖ§³Ö<? ?>£¬ÕâµØ·½Òª¸Ä³ÆON
£¨5£©Ê¹apacheÖ§³Öphp
¹ØÓÚhttpd.confµÄ¸ü¸Ä£º
´ò¿ªapacheµÄhttpd.confÎĵµ£¬ÔÚ¼Çʱ¾ÎĵµÀïÃæ²éÕÒloadmodule²¢¼ÓÉÏÕâÑùÒ»¾ä”loadmodule php5_module d:/php/php5apache2_2.dll”×÷ÓÃÊÇÒÔmoduleµÄ·½Ê½¼ÓÔØphp
PS£ºÕâÀï¿ÉÄÜÓÐÎÊÌ⣬¾ÍÊÇphp5apache2_2.dllÕâ¸öÎļþ£¬¿ªÊ¼µÄʱºòÎÒÓõÄphp5apache2.dll£¬·¢ÏÖÀÏÊDZ§´í£¬¸ú×Ùһϣ¬·¢ÏÖÊǰ汾µÄÎÊÌ⣬ÎÒÓõÄÊÇapche2.2 ËùÒÔÑ¡Ôñphp5apache2_2.dll£¬Õâ¸öµØ·½Ò²ºÜ³¶µ£¡
²éÕÒaddtype²¢ÔÚ “AddType application/x-gzip .gz .tgz“ÏÂÃæ¼ÓÉÏÕâÑùÒ»¾ä“AddType application/x-httpd-php .php”ºÍ “AddType application/x-httpd-php .html”.×÷ÓÃÊǼÓÔØ¿ÉÒÔÖ´ÐеÄÎļþÀàÐÍ¡£
²éÕÒ“directoryindex index.html index.html.var”²¢ÔÚdirecto
Ïà¹ØÎĵµ£º
ÒÔS2µÄBBSÂÛ̳ÏîÄ¿×÷ΪÕû¸ö»ù´¡¿Î³ÌµÄ°¸Àý¡£
1.Á¬½ÓÊý¾Ý¿âºÍÖ´ÐеÚÒ»¸öSQLÓï¾ä:
1)PHPÌṩÁËÁ¬½ÓÊý¾Ý¿âµÄº¯Êý--mysqli_connect(agrs0,agrs1,agrs3)£¬ÎÒÃÇÖ±½ÓʹÓþͿÉÒÔÁË¡£
´Ëº¯Êý°üÀ¨Èý¸ö±ØÒªµÄ²ÎÊý£¬·Ö±ðΪ£ºlocalhost£¬Êý¾Ý¿âÓû§Ãû£¬Êý¾ÝÔ´¡£
ÒÔbbsÂÛ̳Á¬½ÓMy ......
DATETIME¡¢DATE ºÍ TIMESTAMP ÀàÐÍÊÇÏàËÆµÄ¡£±¾ÆªÃèÊöÁËËüÃǵÄÌØÐÔÒÔ¼°ËüÃǵÄÏàËÆµãÓ벻ͬµã¡£
DATETIME ÀàÐÍ¿ÉÓÃÓÚÐèҪͬʱ°üº¬ÈÕÆÚºÍʱ¼äÐÅÏ¢µÄÖµ¡£MySQL ÒÔ 'YYYY-MM-DD HH:MM:SS' ¸ñʽ¼ìË÷ÓëÏÔʾ DATETIME ÀàÐÍ¡£Ö§³ÖµÄ·¶Î§ÊÇ '1000-01-01 00:00:00' µ½ '9999-12-31 23:59:59'¡£(“Ö§³Ö”µÄº¬ÒåÊÇ£¬¾¡¹Ü¸üÔ ......
¡¡×î½üÔÚÕÛÌÚ PHP + MYSQL
µÄ±à³Ì¡£Á˽âÁËһЩ PHP SQL ×¢Èë¹¥»÷
µÄ֪ʶ£¬ÓÚÊÇдÁËÕâÆªÎÄÕ¡¡http://www.xiaohui.com/weekly/20070314.htm£¬×ܽáһϾÑé¡£ÔÚÎÒ¿´À´£¬Òý·¢ SQL ×¢Èë¹¥»÷
µÄÖ÷ÒªÔÒò£¬ÊÇÒòΪÒÔÏÂÁ½µãÔÒò£º
¡¡¡¡1. php ÅäÖÃÎļþ php.ini ÖÐµÄ magic_quotes_gpc
Ñ¡ÏîûÓдò¿ª£¬±»ÖÃΪ off
¡¡¡¡2. ¿ª·¢ ......
Ò»¡¢session¸ÅÊö
sessionÊÇʲô£¬¸Õ¿ªÊ¼ÎÒÒ²²»Ã÷°×£¬·Çרҵ´Êµä·ÒëΪ»áÒ飬»áÒéÆÚ¡£Ö±µ½½Ó´¥aspºó²ÅÖªµÀsessionÊǸÉʲôµÄ£¬ÓÐʲôÓá£×÷¸ö²»Ì«Ç¡µ±µÄ±ÈÓ÷°É£¨ËäÈ»²»Ç¡µ±£¬µ«ÒâÒåÈ´ÊÇÒ»ÑùµÄ£©£¬session¾ÍºÃÏóÄãºÍÄãÅ®ÓÑ(»òÆÞ×Ó)Ö®¼äµÄ¸ÐÇéËÆµÄ£¬sessionÊÇÄãºÍÍøÕ¾Ö®¼äµÄ¸ÐÇé¡£
se ......
²½Ö裺
1.ÔËÐÐÃüÁ./ext_skel --extname=sharemem
2.ÔËÐÐÃüÁ./configure --with-php-config=/usr/local/lnmp/php/bin/php-config
3.make clean
make
make install
/usr/local/lnmp/php/sbin/php-fpm restart
/usr/local/lnmp/php/bin/php-cgi /data0/htdocs/blog/sharemem.php
´úÂëÈçÏ£º
1.config.m4
PHP_A ......