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

ÐÂÀËPHP¹¤³Ìʦ±ÊÊÔÌâ

1. дһ¸öº¯Êý£¬¾¡¿ÉÄܸßЧµÄ£¬´ÓÒ»¸ö±ê×¼ url
ÀïÈ¡³öÎļþµÄÀ©Õ¹Ãû
   ÀýÈç: http://www.sina.com.cn/abc/de/fg.php
?id=1
ÐèҪȡ³ö php »ò .php
2. ÔÚ HTML ÓïÑÔÖУ¬Ò³ÃæÍ·²¿µÄ meta ±ê¼Ç¿ÉÒÔÓÃÀ´Êä³öÎļþµÄ±àÂë
¸ñʽ£¬ÒÔÏÂÊÇÒ»¸ö±ê×¼µÄ meta Óï¾ä
   <META http-equiv='Content-Type
' content='text/html; charset=gbk'>
   ÇëʹÓà PHP ÓïÑÔдһ¸öº¯Êý£¬°ÑÒ»¸ö±ê×¼ HTML Ò³ÃæÖеÄÀàËÆ meta ±ê¼ÇÖÐµÄ charset ²¿·ÖÖµ¸ÄΪ big5
   Çë×¢Òâ:
   (1) ÐèÒª´¦ÀíÍêÕûµÄ html Ò³Ã棬¼´²»¹â´Ë meta Óï¾ä
   (2) ºöÂÔ´óСд
   (3) ' ºÍ " ÔÚ´Ë´¦ÊÇ¿ÉÒÔ»¥»»µÄ
   (4) 'Content-Type' Á½²àµÄÒýºÅÊÇ¿ÉÒÔºöÂԵģ¬µ« 'text/html; charset=gbk' Á½²àµÄ²»ÐÐ
   (5) ×¢Òâ´¦Àí¶àÓà¿Õ¸ñ
3. дһ¸öº¯Êý£¬Ëã³öÁ½¸öÎļþµÄÏà¶Ô·¾¶
   Èç $a = '/a/b/c/d/e.php';
   $b = '/a/b/12/34/c.php';
   ¼ÆËã³ö $b Ïà¶ÔÓÚ $a µÄÏà¶Ô·¾¶Ó¦¸ÃÊÇ ../../c/d½«()ÌíÉÏ
4.дһ¸öº¯Êý£¬Äܹ»±éÀúÒ»¸öÎļþ¼ÐϵÄËùÓÐÎļþºÍ×ÓÎļþ¼Ð¡£
5.¼òÊöÂÛ̳ÖÐÎÞÏÞ·ÖÀàµÄʵÏÖÔ­Àí¡£
6.Éè¼ÆÒ»¸öÍøÒ³£¬Ê¹µÃ´ò¿ªËüʱµ¯³öÒ»¸öÈ«ÆÁµÄ´°¿Ú£¬¸Ã´°¿ÚÖÐÓÐÒ»¸öÎı¾¿òºÍÒ»¸ö°´Å¥¡£Óû§ÔÚÎı¾¿òÖÐÊäÈëÐÅÏ¢ºóµã»÷°´Å¥¾Í¿ÉÒÔ°Ñ´°¿Ú¹Ø±Õ£¬¶øÊäÈëµÄÐÅϢȴÔÚÖ÷ÍøÒ³ÖÐÏÔʾ¡£


Ïà¹ØÎĵµ£º

PHPħÊõ³£Á¿:__LINE__ __FILE__ __CLASS__

PHP ÏòËüÔËÐеÄÈκνű¾ÌṩÁË´óÁ¿µÄÔ¤¶¨Òå³£Á¿
¡£²»¹ýºÜ¶à³£Á¿¶¼ÊÇÓɲ»Í¬µÄÀ©Õ¹¿â¶¨ÒåµÄ£¬Ö»ÓÐÔÚ¼ÓÔØÁËÕâЩÀ©Õ¹¿âʱ²Å»á³öÏÖ£¬»òÕ߶¯Ì¬¼ÓÔغ󣬻òÕßÔÚ±àÒëʱÒѾ­°üÀ¨½øÈ¥ÁË¡£
ÓÐÎå¸öħÊõ³£Á¿¸ù¾ÝËüÃÇʹÓõÄλÖöø¸Ä±ä¡£ÀýÈç __LINE__
µÄÖµ¾ÍÒÀÀµÓÚËüÔڽű¾ÖÐËù´¦µÄÐÐÀ´¾ö¶¨¡£ÕâЩÌØÊâµÄ³£Á¿²»Çø·Ö´óСд£¬ÈçÏ£º
±í 13 ......

php¶þλÊý×éÅÅÐò

<?php
$array[] = array("id"=>20,"name"=>"li");
$array[] = array("id"=>21,"name"=>"ai");
$array[] = array("id"=>20,"name"=>"ci");
$array[] = array("id"=>22,"name"=>"di");
 
foreach ($array as $key=>$value){
 $age[$key] = $value['id'];
 
}
array_ ......

phpºÍjavascriptͨѶ

°ÑphpÊý¾Ý»òÖµ´«µÝ¸øjs
£ººÜ¼òµ¥£¬Ö±½ÓÔÚjsÖÐʹÓÃphp´úÂ룬»ì±à¼´¿É¡£
°ÑjsÊý¾Ý´«µÝ¸øphp
£º¿ÉÒÔʹÓôò¿ªÐ´°¿ÚµÄ·½Ê½£¬Í¨¹ýurlµØÖ·°ÑÊý¾Ý´«µÝ¹ýÈ¥¡£Ò²¿ÉÒÔʹÓÃajax£¬Í¨¹ýget»òpost´«µÝ¸øphp£¬Ò²¿ÉÒÔ±£´æcookieÈÃphpÀ´¶Á¡£
ÔÚ´«µÝÊý¾Ý¹ý³ÌÖпÉÄÜÓöµ½ÖÐÎıàÂë
ÎÊÌ⣬¿ÉÒÔͳһ±àÂ뷽ʽΪjsµÄescape£¬unescape£¬Ò²¿ÉÒÔÍ³Ò ......

40¸ö¼¼ÇÉÓÅ»¯ÄúµÄPHP´úÂë

1. Èç¹ûÒ»¸ö·½·¨Äܱ»¾²Ì¬£¬ÄǾÍÉùÃ÷ËûΪ¾²Ì¬µÄ£¬ËٶȿÉÌá¸ß1/4;
2. echoµÄЧÂʸßÓÚprint,ÒòΪechoûÓзµ»ØÖµ£¬print·µ»ØÒ»¸öÕûÐÍ;
3. ÔÚÑ­»·Ö®Ç°ÉèÖÃÑ­»·µÄ×î´ó´ÎÊý£¬¶ø·ÇÔÚÔÚÑ­»·ÖÐ;
4. Ïú»Ù±äÁ¿È¥ÊÍ·ÅÄڴ棬ÌرðÊÇ´óµÄÊý×é;
5. ±ÜÃâʹÓÃÏñ__get, __set, __autoloadµÈħÊõ·½·¨;
6. requiere_once()±È½ÏºÄ×ÊÔ´;
7. ÔÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ