ת£º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
Ïà¹ØÎĵµ£º
»ù´¡Ìâ
¡¡¡¡1.±íµ¥ÖÐ getÓëpostÌá½»·½·¨µÄÇø±ð?
¡¡¡¡´ð£ºgetÓû§¶Ë½«Êý¾Ý¼Óµ½URLºó£¬¸ñʽΪ”?×Ö¶Î1=ÊäÈëÊý¾Ý1&×Ö¶Î2=ÊäÈëÊý¾Ý2&..."¡£
¡¡¡¡ÓÉÓÚgetÌá½»²ÎÊýºó»áÔÚµØÖ·À¸ÖÐÏÔʾ³öÀ´£¬ËùÒÔ»á²úÉúÑÏÖصݲȫÎÊÌâ¡£
¡¡¡¡get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬ÕâÖ÷ÒªÊÇÒòΪÊÜurl³¤¶ÈÏÞÖÆ;¶øpost¿ÉÒÔ´«Ê ......
//È¥³ý script ½Å ±¾
function delScript($string){
$pregfind = array("/<script.*>.*<\/script>/siU",'/on(mousewheel|mouseover|click|load|onload|submit|focus|blur)="[^"]*"/i');
$pregreplace = array('','');
$string = preg_replace($pregfind, $pregreplace, $string);
return $str ......
DATETIME¡¢DATE ºÍ TIMESTAMP ÀàÐÍÊÇÏàËƵġ£±¾ÆªÃèÊöÁËËüÃǵÄÌØÐÔÒÔ¼°ËüÃǵÄÏàËƵãÓ벻ͬµã¡£
DATETIME ÀàÐÍ¿ÉÓÃÓÚÐèҪͬʱ°üº¬ÈÕÆÚºÍʱ¼äÐÅÏ¢µÄÖµ¡£MySQL ÒÔ 'YYYY-MM-DD HH:MM:SS' ¸ñʽ¼ìË÷ÓëÏÔʾ DATETIME ÀàÐÍ¡£Ö§³ÖµÄ·¶Î§ÊÇ '1000-01-01 00:00:00' µ½ '9999-12-31 23:59:59'¡£(“Ö§³Ö”µÄº¬ÒåÊÇ£¬¾¡¹Ü¸üÔ ......
ÁíÍâMySql¹Ù·½³öÁËÒ»¸öÔÚcsharpÀïÃæÁ¬½ÓMySqlµÄConnector£¬¿ÉÒÔÊÔÊÔ
http://dev.mysql.com/downloads/#connector-net
<add name="mysql" connectionString="server=125.46.37.170;uid=root;pwd=;"/>
±¨´í£ºUnable to connect to any of the specified MySQL hosts.
½ñÌì×öÏîĿʱºò¾ÍÓöµ½ÕâÎÊ ......
²½Ö裺
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 ......