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

½â¾öphp URLµØÖ·´«ÊäÂÒÂëÎÊÌâºÍÏÂÔØÎļþÃûÂÒÂëµÄÎÊÌâ

ÕýºÃ¹¤×÷ÖÐÅäµ½´ËÀàÎÊÌ⣬д³öÀ´ºÍ´ó¼Ò·ÖÏí¡£ºÜ¶àÍøÓÑÌṩÁËʹÓÃurlencode ºÍ urldecodeµÄ·½Ê½È¥±àÂëºÍ½âÂ룬˵µÄ²»È«Ãæ¡£ÓеÄʱºòÒ²»áÅöµ½ÕâÑùµÄÎÊÌâ¡£
1.Ê×ÏÈÒª¼ì²éÄãapacheºÍphpµÄ·þÎñÆ÷ĬÈÏÓïÑÔ¡£ÔÚwindowÏ£¬¿ÉÒԲο¼apacheµÄÅäÖÃÎļþhttpd.conf¡£ ÔÚAddCharset¸½½üÔÚ¼ÓÉÏÏÂÃæµÄÃüÁîÐУº
AddDefaultCharset UTF-8
±êÖ¾ÄãµÄÏîÄ¿ÔËÐÐÔÚutf-8µÄ×Ö·û¼¯Ï¡£²¢ÇÒ±£Ö¤ÏîÄ¿ÖеÄÎļþ¸ñʽҲÊÇutf-8¸ñʽµÄ¡£·ñÔòÒ²»á³öÏÖÖÐÎÄÂÒÂëµÄÎÊÌâ¡£
ÔÚlinuxÏ£¬¿ÉÒԲο¼apacheµÄÅäÖÃÎļþhttpd.conf¡£´ò¿ª×¢ÊÍInclude conf/extra/httpd-languages.conf£¬ ²¢µ½httpd-languages.confÖмÓÉÏAddDefaultCharset UTF-8 ÖØÐÂÆô¶¯¼´¿É¡£
2.ͬʱurlencodeºÍurldeconde·½Ê½À´½âÂë±àÂ룬¼´¿É½â¾öÖÐÎÄÂÒÂë
3.ÏÂÔØÎļþʱºò£¬Í¨³£Ò²±¬³öÎļþÃûÂÒÂëµÄÎÊÌ⣬¸ù¾ÝÉÏÎÄ£¬¼ÙÈçÎļþÃûÊÇutf-8¸ñʽµÄ±àÂ룬ÄÇôʹÓÃÏÂÃæµÄ·½Ê½×ªÂ룺
iconv('utf-8', 'gb2312', $filename)
¼´¿É¡£


Ïà¹ØÎĵµ£º

PHPµÄÈÕÆÚʱ¼äÔËËã×ܽá




<?php
//GB2312µÄEncode
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
/*ÖصãÁ˽âstrtotime()º¯Êý
1¡¢strftime±Ètime()ºÃÓ㬿ÉÒÔÖ±½Ó°Ñ³£ÓõĒ2010-02-03‘ת³Éʱ¼ä´Á¡£
2¡¢date( ......

¿ªÊ¼PHP֮·

½ñÌì2010-02-26£¬¿ªÊ¼ÎÒµÄphpѧϰ֮·£¬
¼Æ»®ÔÚδÀ´µÄÒ»¶Îʱ¼äÄÚ£¬ÓÃ×ã¹»¶àµÄʱ¼äºÍ¾«Á¦À´Ñ§Ï°Á˽âphp¡£
×öµ½¾«Í¨Àí½â»¹ÓоÍÊÇ×Ô¼º¶ÀÁ¢µÄ¿ª·¢³öһϵÁеÄÍøÕ¾£¬×÷Ϊ¶Ô×Ô¼ºÑ§Ï°µÄ¼ìÑé¡£
×öºÃ¼¼Êõ×ܽáºÍ¼¼ÊõÄÚºËÀí½â ......

php ¹ÙÍø½éÉÜ

ÿ¸öÈ˶¼ÖªµÀphp.net£¬ÎÒÃÇ»òÔç»òÍíµÄ¶¼»áÀ´µ½ÕâÀï²¢²»¶ÏµÄ·ÃÎÊËü¡£ËüÊÇPHPerµÄÖ÷Òª²Î¿¼ÍøÕ¾£¬ÓµÓдóÁ¿ÓÐÓõÄÐÅÏ¢£¬µ«ÊÇÕâЩÐÅϢȴ²»ÊÇÄÇôÏÔ¶øÒ×¼û¡£
±È½ÏÓÐÓõĹٷ½PHP×ÊÔ´£º
PHP¹Ù·½º¯ÊýÊÖ²áÏÂÔØ£º http://www.php.net/download-docs.php
 °üº¬×îеÄchmÖÐÎÄ°æ±¾£¬HTML°æ±¾
ÖÐÎĺ¯ÊýÊֲ᣺http://www.php.net/m ......

phpÉú³ÉŤÇú¼°ÐýתµÄÑéÖ¤ÂëͼƬ

<?php
function make_rand($length="32"){//ÑéÖ¤ÂëÎÄ×ÖÉú³Éº¯Êý
$str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
$result="";
for($i=0;$i<$length;$i++){
$num[$i]=rand(0,61);
$result.=$str[$num[$i]];
}
return $result;
} ......

PHP¶¯Ì¬ÍøÕ¾¿ª·¢Öг£ÓõÄ8¸öС¼¼ÇÉ

PHPÊÇÒ»ÖÖÓÃÓÚ´´½¨¶¯Ì¬WEBÒ³ÃæµÄ·þÎñ¶Ë½Å±¾ÓïÑÔ¡£ÈçͬASPºÍColdFusion£¬Óû§¿ÉÒÔ»ìºÏʹÓÃPHPºÍHTML±àдWEBÒ³Ã棬µ±·ÃÎÊÕßä¯ÀÀµ½¸ÃÒ³Ãæʱ£¬·þÎñ¶Ë»áÊ×ÏȶÔÒ³ÃæÖеÄPHPÃüÁî½øÐд¦Àí£¬È»ºó°Ñ´¦ÀíºóµÄ½á¹ûÁ¬Í¬HTMLÄÚÈÝÒ»Æð´«Ë͵½·ÃÎʶ˵Ää¯ÀÀÆ÷¡£µ«ÊÇÓëASP»ò
ColdFusion²»Í¬£¬PHPÊÇÒ»ÖÖÔ´´úÂ뿪·Å³ÌÐò£¬ÓµÓкܺõĿçƽ̨¼æÈÝÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ