Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÎÞÏÞ·ÖÀàµÄÀà

<?php
/**
 by lenush;
 */
class Tree
{
    var $data    = array();
    var $child    = array(-1=>array());
    var $layer    = array(-1=>-1);
    var $parent &nbs ......

PHPÏòÌض¨URL·¢ËÍPOSTÊý¾Ý

½ñÌ칤×÷ÖÐÓöµ½ÁËPOSTÊý¾ÝµÄÎÊÌ⣬ÐèÒªÏòÒ»¸öÌض¨µÄURL·¢ËÍPOSTÊý¾Ý¡£
ÏÖ½«PHP·¢ËÍPOSTÊý¾ÝµÄ·½Ê½×ܽáÏ£¬·½±ã×Ô¼ºÔ츣ºóÈË£º
·½·¨Ò»£ºHTTPº¯Êý·¢ËÍ·½Ê½
˵Ã÷£º$dataΪPOST·¢Ë͵ÄÊý¾Ý£º$keyΪ²ÎÊýÃû£¬$valΪ²ÎÊýÖµ
$URL = "http://pre.payment.sdoa.sdo.com/";
$data = $key1."=".val1."&".$key2."=".val2;
$Post ......

PHPÌ×¼þ

±¾À´²»Ïë̸Õâ¸ö³ÁÖصĻ°Ì⣬Æäʵ˵°×ÁË£¬Èç¹ûÄãÒ»¸öPHPµÄ³ÌÐòÔ±Á¬ÔõôÅäÖû·¾³¶¼¸ã²»¶¨Ä㻹¸ã¸öP¿ª·¢Ñ½¡£µÃ£¬ÔÛ²»ËµÄãÔÚlinuxÏÂÃæ¸ã¶¨ÕâЩ£¬ÄѵÀÄãÔÚwindowsÏÂÃæÄãÒ²¸ã²»¶¨£¿
ÏÖÔÚµÄPHP¶þ½øÖÆ°²×°°æ±¾ÒѾ­¿ÉÒÔÖ§³Öapache,iis5,iis6µÈһЩWEB·þÎñÆ÷ÁË£¬ÎªÊ²Ã´»¹ÊÇÓÐһЩÈ˲»»áÅäÖÃÄØ£¿ÕæÏ벻ͨѽ¡£¡£¡£¡£¡£¡£
ÓÚÊÇÔÚÕâÖÖ´ó ......

phpÖеÄsleep()º¯Êý

¡¡¡¡×î½üÔÚ×ö¸öÒ³Ãæʱ£¬Óöµ½ÒªPHP³ÌÐòÖÐʵÏÖÑÓ³Ùµ±Ç°½ø³ÌÎÊÌâ¡£ÓÉÓÚ½Ó´¥PHPʱ¼äÓÐÏÞ£¬Ï뵱ȻµÄÈÏΪPHPÖÐʵÏִ˹¦Äܵĺ¯ÊýÒ²ÊÇsleep()¡£ÊÂʵÉÏ£¬ÔÚPHPÖеÄÈ·ÓÐÕâ¸öº¯Êý£¬µ«ÔÚÎÒ³¢ÊÔÁË°ëÌìºó£¬È´Ê¼ÖÕ²»ÄÜʵÏÖÎÒÒªµÄÂß¼­¡£PHP5ÊÖ²áÖУ¬¶ÔÕâ¸öº¯ÊýÊÇÕâÑùÃèÊöµÄ£ºsleep -- Delay execution¡£µ±ÎÒ°Ù¶ÈÁËÒԺ󣬲ÅÖªµÀÕ⸠......

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ºÅ