ʹÓÃWAMP5´î½¨Apache+MySQL+PHP»·¾³
Ä¿Ç°Óв»ÉÙAMP£¨Apache\MySQL\PHP£©µÄ¼¯³ÉÈí¼þ£¬¿ÉÒÔÈÃÎÒÃÇÒ»´Î°²×°²¢ÉèÖúá£Õâ¶ÔÓÚ²»ÊìϤAMPµÄÓû§À´Ëµ£¬ºÃ´¦¶à¶à¡£
Ò»¡¢Ê¹ÓÃAMP¼¯³ÉÈí¼þµÄÓŵ㣺
1¡¢¿É±ÜÃâÓÉÓÚȱ·¦AMPµÄ֪ʶ£¬¶øÎÞ·¨ÕýÈ·ÉèÖû·¾³£»
2¡¢¿É¿ìËÙ°²×°²¢ÉèÖúÃAMP»·¾³£¬ÈÃÎÒÃÇÖ±½Ó¿ªÊ¼ÕæÕý¸ÐÐËȤµÄÈí¼þ£¬Èçxoops£»
3¡¢¿É·½±ãµÄ´î½¨²âÊÔ»·¾³£¬¶ÔÓÚ²âÊÔ“ÊÇAMP»·¾³ÎÊÌ⣬»¹ÊÇXOOPSÔì³ÉµÄÎÊÌ┺ÜÓаïÖú£¬²ÉÓÃÅųý·¨¼´¿É¡£
¶þ¡¢³£ÓõÄAMP¼¯³ÉÈí¼þ£º
1¡¢AppServ£ºhttp://www.appservnetwork.com/
Õâ¸öÈí¼þÔŲ́ÍåºÜÁ÷ÐС£¿´µ½²»ÉÙÊé¼®Ò²¼«Á¦ÍƼö£¬¹À¼Æ¶¼ÊÇÊŲ̈ÍåÓû§µÄÓ°Ïì¡£
2¡¢XAMPP£ºhttp://www.apachefriends.org/en
Õâ¸öÈí¼þÖ§³Ö¶à¸öƽ̨,Win\Linux\Solaris\Mac OS X£¬Ä¿Ç°Ò²Óв»ÉÙÈËʹÓá£
3¡¢WAMP5£ºhttp://www.wampserver.com/en/
ÕâÊÇÎÒ½ñÌ켫Á¦ÍƼöµÄ£¬¾ø¶ÔÎåÐǼ¶¡£×¢ÒâËüµÄÃû×ÖÊÇ´ø¸ö5µÄŶ£¬Òâ˼¾ÍÊÇWAMP5ʹÓÃ×îеÄPHP5°æ±¾£¬ÕýÈç¹Ù·½ÍøÕ¾ÉϵĿںţºDiscover PHP5 with WAMP5 !
Èý¡¢¸ù¾ÝÎҵľÑ飬WAMP5ÓÐÈçÏÂÓŵ㣺
1¡¢XOOPSÔÚWAMP5ÖÐʹÓã¬Ã»ÓÐÈκÎÎÊÌâ¡£
2¡¢WAMP5רעÓÚWindowsƽ̨£¬°²×°ÉèÖü°Æä¼òµ¥¡£
3¡¢PHPĬÈϵÄÊÇ5.x°æ±¾£¬Èç¹ûÐèÒªphp4.x£¬Ö»Òª°²×°php4.x²å¼þ£¬¾Í¿ÉÒÔÔÚÁ½ÕßÖ®¼ä×ÔÓɵÄÇл»£¬·Ç³£·½±ã¡£
4¡¢MySQLĬÈϵÄÊÇ5.x°æ±¾£¬µ«¿ÉÒÔͨ¹ýÑ¡ÔñÀÏ°æ±¾µÄWAMP5£¬´Ó¶øʹÓÃ4.xµÄMySQL¡£
5¡¢¿ÉÊÓ»¯µÄ²Ëµ¥¹ÜÀí£¬¼«Æä·½±ã¡£È磬´ò¿ª¹Ø±Õphp extention¡¢Apache moduleµÈ£¬Ö±½Óͨ¹ý²Ëµ¥Ñ¡Ôñ¾Í¿ÉÒÔ¡£
6¡¢»¹Óи÷ÖÖ²å¼þ£¬ÈçZEND OPTIMIZER ADD-ONµÈ¡£
7¡¢Èç¹ûÓÐÒÉÎÊ£¬¹Ù·½»¹ÓÐÂÛ̳¿ÉÒÔÇóÖú¡£
......¸ü¶àÓŵ㣺ËÓÃËÖªµÀ£¬ÔçÓÃÔçÖªµÀ^_^
ËÄ¡¢Ê¹ÓÃWAMP5µÄ¾Ñé¡¢¼¼ÇÉ
1¡¢°²×°Ê±µÄÉèÖ㺿ÉÒÔ×Ô¶¨ÒåWWW¸ùĿ¼µÄ´æ·ÅλÖÃŶ£¬Ç¿ÁÒ½¨Òé·Åµ½DÅ̵Ȱ²È«µÄ·ÖÇøÖУ¬ÒÔ±ÜÃâÍòһϵͳ±ÀÀ££¬Ôì³ÉÊý¾Ý¶ªÊ§¡£
2¡¢¶ÔÓÚÖÐÎÄÓû§À´Ëµ£¬°²×°½áÊøºó£¬Ê×ÏÈÒªÉèÖõÄÊÇ£¬°ÑMySQLµÄÊý¾Ý¿âĬÈϱàÂë¸ÄΪUTF-8£¬ÕâÑù¿ÉÒÔÅųýºÜ¶àÖÐÎÄÂÒÂëÎÊÌ⣺ÔÚWAMP5²Ëµ¥ÖÐÑ¡Ôñ´ò¿ªmy(wamp).ini£¬ÉèÖÃÆäÖеÄdefault-character-set=utf8, È»ºóÖØÆôWAMP5¡£
3¡¢Êý¾Ý¿âĬÈϵÄÃÜÂëÊǿյģ¬¿ÉÒÔÔÚphpMyAdminÖÐÉèÖÃrootÕʺŵÄÃÜÂëΪ123456£»µ±È»ÐÞ¸ÄÖ®ºó£¬¾ÍÒª¸ú×ÅÐÞ¸ÄphpMyAdminµÄÅäÖÃÎļþconfig.inc.php£¬·ñÔòphpMyAdmin¾Í½ø²»ÁËÊý¾Ý¿âÀ²£º
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
4¡¢Èç¹ûÐèÒªmysql4.x + php4.x£¬¿ÉÑ¡ÓÃWAMP5 1.44°æ±¾ÒÔ¼
Ïà¹ØÎĵµ£º
¶ÔÓÚÕë¶Ô×Ö·û´®Î»ÖõIJÙ×÷£¬µÚÒ»¸öλÖñ»±ê¼ÇΪ1¡£
ASCII(str) ·µ»Ø×Ö·û´®strµÄ×î×óÃæ×Ö·ûµÄASCII´úÂëÖµ¡£Èç¹ûstrÊÇ¿Õ×Ö·û´®£¬·µ»Ø0¡£Èç¹ûstrÊÇNULL£¬·µ»ØNULL¡£
mysql> select ASCII('2');
-> 50
mysql> select ASCII(2);
-> 50
mysql> select ASCII('dx');
-> 100
Ò² ......
1. -static 13%
--with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
¾²Ì¬Á´½ÓÌá¸ß13%ÐÔÄÜ
2. -pgcc 1%
CFLAGS="-O3 -mpentiumpro -mstack-align-double" CXX=gcc \
CXXFLAGS="-O3 -mpentiumpro -mstack-alig ......
---- ÔÚÊý¾Ý¿âµÄÓ¦Óÿª·¢ÖУ¬³£³£»áÓöµ½ÐÔÄܺʹú¼ÛµÄÖ®¼äì¶Ü¡£ÒÔ×÷ÕßÔÚ¿ª·¢¹ÉÊÐÐÐ
Çé²éѯºÍ½»Ò×ϵͳÖÐÓöµ½µÄÎÊÌâΪÀý£¬ÒªÔÚʵʱ¼Ç¼1000¶àÖ»¹ÉƱÿ·ÖÖÓ¸üÐÂÒ»´ÎµÄÐÐ
ÇéÊý¾ÝµÄͬʱ£¬ÏìÓ¦´óÁ¿²¢·¢Óû§µÄÊý¾Ý²éѯÇëÇ󡣿¼Âǵ½ÐԼ۱ȺÍÒ×ά»¤ÐÔ£¬ÏµÍ³ÓÖ
ÒªÇóÔÚ»ùÓÚPC·þÎñÆ÷£¬Windows NTƽ̨µÄÈíÓ²¼þ»·¾³ÏÂʵÏÖ¡£¿ª ......
<?
$_mysqlhost="localhost";
$_mysqluser="root";
$_mysqlpass="";
$_mysqldata="mydata";
$_connect=mysql_connect($_mysqlhost,$_mysqluser,$_mysqlpass) or die ("´íÎó".mysql_error());
mysql_query("SET character_set_connection=utf8, character_set_results=utf8, character_set_client=binary", $ ......
×î½üÔÚ×öPHPÓëÊý¾Ý¿â½»»¥µÄproject£¬¼±ÓÚÇó³É£¬Ä£·ÂÁËÏÂÀý×ӾͿªÊ¼¶¯ÊÖ£¬½á¹ûÎó°Ñmysql_fetch_arrayд³ÉÁËmysql_fetch_row,囧ÊÂÀ´ÁË£¬·¢ÏÖ·µ»ØµÄÊý×é¾ÓÈ»ÊÇindex=>valueµÄÐÎʽ£¬¶øÃ÷Ã÷¼ÇµÃÊÇfield name=>valueµÄ¹þ£¬²éÊÖ²á²ÅÃ÷°×¡£
1. mysql_fetch_arrayµÄº¯ÊýÔÐÍÊÇ
array mysql_fetch_array ( resour ......