Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[ת]PHPÂÒÂë½â¾ö·½·¨

PHP³ÌÐòÉè¼ÆÖÐÖÐÎıàÂëÎÊÌâÔø¾­À§ÈźܶàÈË£¬µ¼ÖÂÕâ¸öÎÊÌâµÄÔ­ÒòÆäʵºÜ¼òµ¥£¬Ã¿¸ö¹ú¼Ò(»òÇøÓò)¶¼¹æ¶¨Á˼ÆËã»úÐÅÏ¢½»»»ÓõÄ×Ö·û±àÂ뼯£¬ÈçÃÀ¹úµÄÀ©Õ¹
ASCII Âë, ÖйúµÄ GB2312-80£¬ÈÕ±¾µÄ JIS
µÈ¡£×÷Ϊ¸Ã¹ú¼Ò/ÇøÓòÄÚÐÅÏ¢´¦ÀíµÄ»ù´¡£¬×Ö·û±àÂ뼯Æð×Åͳһ±àÂëµÄÖØÒª×÷Óá£×Ö·û±àÂ뼯°´³¤¶È·ÖΪ
SBCS(µ¥×Ö½Ú×Ö·û¼¯)£¬DBCS(Ë«×Ö½Ú×Ö·û¼¯)Á½´óÀà¡£ÔçÆÚµÄÈí¼þ(ÓÈÆäÊDzÙ×÷ϵͳ)£¬ÎªÁ˽â¾ö±¾µØ×Ö·ûÐÅÏ¢µÄ¼ÆËã»ú´¦Àí£¬³öÏÖÁ˸÷ÖÖ±¾µØ»¯°æ±¾
(L10N)£¬ÎªÁËÇø·Ö£¬Òý½øÁË LANG, Codepage
µÈ¸ÅÄî¡£µ«ÊÇÓÉÓÚ¸÷¸ö±¾µØ×Ö·û¼¯´úÂ뷶ΧÖصþ£¬Ï໥¼äÐÅÏ¢½»»»À§ÄÑ;Èí¼þ¸÷¸ö±¾µØ»¯°æ±¾¶ÀÁ¢Î¬»¤³É±¾½Ï¸ß¡£Òò´ËÓбØÒª½«±¾µØ»¯¹¤×÷ÖеĹ²ÐÔ³éÈ¡³öÀ´£¬×÷Ò»
Ö´¦Àí£¬½«ÌرðµÄ±¾µØ»¯´¦ÀíÄÚÈݽµµÍµ½×îÉÙ¡£ÕâÒ²¾ÍÊÇËùνµÄ¹ú¼Ê»¯(118N)¡£¸÷ÖÖÓïÑÔÐÅÏ¢±»½øÒ»²½¹æ·¶Îª Locale
ÐÅÏ¢¡£´¦ÀíµÄµ×²ã×Ö·û¼¯±ä³ÉÁ˼¸ºõ°üº¬ÁËËùÓÐ×ÖÐ뵀 Unicode¡£
¡¡¡¡ÏÖÔڴ󲿷־ßÓйú¼Ê»¯ÌØÕ÷µÄÈí¼þºËÐÄ×Ö·û´¦Àí¶¼ÊÇÒÔ Unicode
Ϊ»ù´¡µÄ£¬ÔÚÈí¼þÔËÐÐʱ¸ù¾Ýµ±Ê±µÄocale/Lang/Codepage
ÉèÖÃÈ·¶¨ÏàÓ¦µÄ±¾µØ×Ö·û±àÂëÉèÖ㬲¢ÒÀ´Ë´¦Àí±¾µØ×Ö·û¡£ÔÚ´¦Àí¹ý³ÌÖÐÐèҪʵÏÖ Unicode ºÍ±¾µØ×Ö·û¼¯µÄÏ໥ת»»£¬Éõ»òÒÔ Unicode
ΪÖмäµÄÁ½¸ö²»Í¬±¾µØ×Ö·û¼¯µÄÏ໥ת»»¡£ÕâÖÖ·½Ê½ÔÚÍøÂç»·¾³Ï±»½øÒ»²½ÑÓÉ죬ÈκÎÍøÂçÁ½¶ËµÄ×Ö·ûÐÅÏ¢Ò²ÐèÒª¸ù¾Ý×Ö·û¼¯µÄÉèÖÃת»»³É¿É½ÓÊܵÄÄÚÈÝ¡£
¡¡¡¡Êý¾Ý¿âÖеÄ×Ö·û¼¯±àÂëÎÊÌâ
¡¡¡¡Á÷ÐеĹØϵÊý¾Ý¿âϵͳ¶¼Ö§³ÖÊý¾Ý¿â×Ö·û¼¯±àÂ룬Ҳ¾ÍÊÇ˵ÔÚ´´½¨Êý¾Ý¿âʱ¿ÉÒÔÖ¸¶¨Ëü×Ô¼ºµÄ×Ö·û¼¯ÉèÖã¬Êý¾Ý¿âµÄÊý¾ÝÒÔÖ¸¶¨µÄ±àÂëÐÎʽ´æ´¢¡£µ±Ó¦ÓÃ
³ÌÐò·ÃÎÊÊý¾Ýʱ£¬ÔÚÈë¿ÚºÍ³ö¿Ú´¦¶¼»áÓÐ×Ö·û¼¯±àÂëµÄת»»¡£¶ÔÓÚÖÐÎÄÊý¾Ý£¬Êý¾Ý¿â×Ö·û±àÂëµÄÉèÖÃÓ¦µ±±£Ö¤Êý¾ÝµÄÍêÕûÐÔ¡£GB2312¡¢GBK¡¢UTF-8
µÈ¶¼ÊÇ¿ÉÑ¡µÄÊý¾Ý¿â×Ö·û¼¯±àÂë;µ±È»ÎÒÃÇÒ²¿ÉÒÔÑ¡Ôñ ISO8859-1 (8-bit)£¬Ö»ÊÇÎÒÃǵÃÔÚÓ¦
¡¡¡¡ÓóÌÐòдÊý¾Ý֮ǰÏȽ« 16Bit µÄÒ»¸öºº×Ö»ò Unicode ²ð·Ö³ÉÁ½¸ö 8-bit
µÄ×Ö·û£¬¶ÁÊý¾ÝÖ®ºóÒ²ÐèÒª½«Á½¸ö×ֽںϲ¢ÆðÀ´£¬Í¬Ê±»¹ÒªÅбðÆäÖÐµÄ SBCS ×Ö·û£¬Òò´ËÎÒÃDz¢²»ÍƼö²ÉÓà ISO8859-1
×÷ΪÊý¾Ý¿â×Ö·û¼¯±àÂë¡£ÕâÑù²»µ«Ã»Óгä·ÖÀûÓÃÊý¾Ý¿â×ÔÉíµÄ×Ö·û¼¯±àÂëÖ§³Ö£¬¶øÇÒͬʱҲÔö¼ÓÁ˱à³ÌµÄ¸´ÔӶȡ£±à³Ìʱ£¬¿ÉÒÔÏÈÓÃÊý¾Ý¿â¹ÜÀíϵͳÌṩµÄ¹ÜÀí¹¦ÄÜ
¼ì²éÆäÖеÄÖÐÎÄÊý¾ÝÊÇ·ñÕýÈ·¡£
¡¡¡¡PHP ³ÌÐòÔÚ²éѯÊý¾Ý¿â֮ǰ£¬Ê×ÏÈÖ´ÐÐ mysql_query("SET NAMES xxxx"); ÆäÖÐ xxxx
ÊÇÄãÍøÒ³µÄ±àÂë(charset=xxxx)£¬Èç¹û


Ïà¹ØÎĵµ£º

Bugfree £¨Apache php MySQL£©µÄ°²×°

Ò»¡¢Apache HTTP Server °²×°£º
ÔËÐÐApache .msi Îļþ£¬°²×°³ÌÐò½«ÒªÇóÄãÌîдÈçÏÂÄÚÈÝ£º
1. Network Domain¼üÈëÄãµÄ·þÎñÆ÷£¨»òÕßÊÇÄã¼´½«×¢²áµÄ·þÎñÆ÷£©µÄDNS ÓòÃû¡£ÀýÈ磬ÄãµÄ·þÎñÆ÷µÄDNSÓòÃûÈ«³ÆÊÇserver.mydomain.net,ÄãÖ»ÐèÔÚÕâÀïÊäÈëmydomain.net¡£
2. Server Name  ¾ÍÊÇÄãµÄ·þÎñÆ÷µÄDNSÓòÃûÈ«³Æ£¬»¹ÊÇÉÏÃæµÄÀ ......

mysql+phpÎÞ·¨Á¬½Ósql£¨Òѽâ¾ö£©

¸ãÁ˺ܾᣡ£ÖÕÓÚ·¢ÏÖÔ­À´ÊÇȨÏÞÎÊÌâ¡£¡£
2ÐÐÃüÁî¸ã¶¨
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
¾­µäÁË¡£¡£¡£
ħÁ¦Ë½·þÍøÒ³¶Ë¸ã¶¨¿©~~ ......

PHP»·¾³ÅäÖÃÐĵÃ


PHP»·¾³ÅäÖÃÐĵÃ
ApacheµÄÅäÖÃ
Ê×ÏÈÎÒÔÚhttp://httpd.apache.org/download.cgiϵÄÊÇ“Win32 Binary without crypto (no mod_ssl) (MSI Installer): httpd-2.2.15-win32-x86-no_ssl.msi”¡£°²×°ÄÇÊÇС¶ù¿ÆÀ²£¬ÏÂÒ»²½ÏÂÒ»²½¡£ÎҾͲ»ËµÁË¡£
°²×°Íêºó¾ÍÒª¿ªÊ¼ÅäÖÃÁË£¬ ......

PHP bug??global·¢ÏÖµÄÎÊÌâ

ÈçÏÂphp´úÂë
<?php
$type='a';
$target='type';
$a=array(1,2,3);
a($target);
function a($type)
{
    global $$type;
    var_dump($$type);
}
?>
Ô¤¼ÆÊä³öµÄÊÇstring(1)”a”
¿ÉÊǽá¹ûÊÇ
Notice: Undefined variable: a in D:\web\global.php on ......

PHP ÖÆ×÷ͨѶ¼£¨Èý£©

ÉÏһƪÎÒÃǽ²µ½Á´½Óµ½ Edit.php?id= À´ÐÞ¸ÄÊý¾Ý£¬ºóÀ´ÎÒÏëÁËһϣ¬ÆäʵҲ¿ÉÒÔÖ±½ÓÀûÓà Input.php À´ÐÞ¸ÄÊý¾Ý£¬ÕâÑù¸üÈÝÒ×¹ÜÀí£¬½ÚÊ¡Á˲»±ØÒªµÄ¿Õ¼ä 
Input.php¿ÉÒÔÕâÑùÁ´½Ó£ºInput.php?id=[Num]&action=[Num]
id¼´¼Ç¼ID£¬Ä¬ÈÏΪ-1
actionΪ¶¯×÷£¬Ä¬ÈÏΪ0  £¬ Ϊ0ʱ´ú±íÌí¼ÓеļǼ£¬Îª1ʱÔòÐ޸ļǼ
In ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ