¡¾×ª¡¿É÷ÓÃPHP$_REQUESTÊý×é
ÎÒƽʱ×ÜÊÇϲ»¶ÓÃ$_REQUESTÕâ¸öÊý×飬²»ÊÇÒòΪ±ðµÄ£¬¼òµ¥£¬¶øÇÒÏëÓÃGETʱºò¾ÍÓÃGETÖ±½Ó²âÊÔ¼´¿É¡£»¹¿ÉÒÔ°ÑURL´ò³öÀ´£¬ºÜÊÇ·½±ã¡£´Ó¶øºÜÉÙÓÃ$_GETºÍ$_POST³¬È«¾Ö±äÁ¿¡£
²»¹ý£¬´Ó½ñÒÔºóÎһᾡÁ¿²»ÔÙʹÓÃ$_REQUESTÕâ¸öÊý×飬ÒòΪÒÔÇ°¶ÔÕâ¸öÊý×éÓÐЩһ֪°ë½â£¬×ÜÒÔΪÓÃÆðÀ´¼òµ¥£¬²¢ÇÒËæÐÄËùÓû£¬ºÍ$_GETÓë$_POSTÒ»Ñù£¬¶øÇÒÓÉϵͳΪÎÒÅжϣ¬¶àºÃ¡£ÏÂÃæÎÒ¾ÍÀ´¼òµ¥µÄ½éÉÜÒ»ÏÂΪºÎ²»Ó¦¸ÃʹÓÃ$_REQUESTÕâ¸öÊý×é¡£
ÎÒÃǶ¼ÖªµÀ£¬´¦Àí±íµ¥Êý¾Ý£¬¿ÉÒÔʹÓÃPHPµÄ$_GETºÍ$_POSTÕâÁ½¸ö³¬È«¾Ö±äÁ¿£¬¾ßÌåÊÇÄĸöÓÉform±íµ¥ÌύʱµÄmethodÖ¸¶¨¡£³ý´ËÖ®ÍâPHP»¹ÎªÎÒÃÇÌṩÁË$_REQUESTÊý×é¡£µ«ÊÇÆä²»½ö°üº¬$_GETºÍ$_POSTµÄËùÓÐÊý¾ÝÔªËØ£¬Í¬Ê±Æ仹»á°üº¬$_COOKIEÕâ¸ö³¬È«¾ÖÊý×éµÄËùÓÐÊý¾ÝÔªËØ¡£
¿ÉÊÇ´ó¼ÒÓÐûÓÐÏë¹ý£¬Èç¹ûÕâÈý¸öÊý×éÀïÃæµÄkeyÏàͬ£¬ÄÇôÎÒÓÃ$_REQUESTµÃµ½µÄµ½µ×ÊÇÄĸöÊý×éµÄÖµÄØ£¿»á²»»áÓÐʲôÎÊÌ⣿
ÎÒÓÃÈçÏ´úÂëΪ´ó¼Ò×öÑÝʾ£¬ÒòΪֻÊÇÏë˵Ã÷ÎÊÌ⣬ËùÒÔÕâÀïÃæ²»¶Ô$_COOKIE½øÐÐÉèÖã¬Çë´ó¼Ò×ÔÐд¦Àí£º
<?php
var_dump($_GET['a'],$_POST['a'],$_REQUEST['a']);
?>
<html>
<head><title>demo</title></head>
<body>
<form method= 'post' action = 'req.php?a=xxx'>
<input type='hidden' name='a' value='yyy'/>
<input type='submit' name='submit' value='submit'/>
</form>
</body>
</html>
µ±ÎÒÌá½»±íµ¥µÄʱºò£¬ÎÒ»ñÈ¡µÄÒ³ÃæÄÚÈÝΪ£º
string(3) "xxx" string(3) "yyy" string(3) "yyy"
ͬÑùµÄÄÚÈÝ£¬ÔÚ$_REQUESTÀïÃ棬POSTµÄÖµ¸²¸ÇÁËGETµÄÖµ£¬Õâµ½µ×ÊÇÔõô»ØÊÂÄØ£¿
ÆäʵÕâÊÇÔÚPHPµÄÅäÖÃÎļþÀïÃæÉèÖõģ¬ÈÃÎÒÃÇÀ´¿´Ò»ÏÂphp.iniÕâ¸öÅäÖÃÎļþ£¬ÔÚµÚ466ÐÐ×óÓÒÓÐÈçÏÂÄÚÈÝ£º
; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"
Õâ¸öEGPCS¾ÍÊÇ˵Ã÷ÓÃ$_REQUESTÊý×é»ñÈ¡ÄÚÈݵÄÓÅÏȼ¶£¬Æä×ÖĸµÄº¬Òå·Ö±ð´ú±íΪ£ºE´ú±í$_ENV£¬G´ú±
Ïà¹ØÎĵµ£º
¸öÈ˱ȼÛÈÏ¿É£¬ÏÖÔÚÊÇÓà netbean 6.8 ¹Ù·½Ìṩ²å¼þºÜÆëÈ«¡£
http://www.ibm.com/developerworks/cn/opensource/os-php-ide/
http://www.pusuo.net/2009-09-19/110884581.html
ÔÙÓбȽϹØ×¢vs 2010µÄÕýʽ°æ£¬ÏëÒªºÍvs.net£¬ÔÀ´ÊÇ°²×°ÔÚvs2008 ÒÔÉÏ°æ±¾µÄ£¬ÏÖÔÚ²»ÖªµÀÊDz»ÊÇ¿ÉÒÔÕûºÏµ½vs 2010
Èç¹û¿ÉÒÔÕûºÏµÄ»°£¬ÄÇôΠ......
½ñÌìÅöµ½¸öÆæ¹ÖµÄÎÊÌ⣬һ¸öajaxÒ³ÃæÔÚ±¾µØ²âÊÔ·þÎñÆ÷ÔËÐÐÒ»ÇÐÕý³££¬´«µ½¹«Íø·þÎñÆ÷ÉϾÍËÀ»î˵ javascript´íÎó¡£
´ò¿ª´úÂëÒ»¿´£¬ÊÇjavascriptµÄÄÇÒ»ÐÐʹÓÃÁËÒ»¸öjsonµÄreponseText£¬DEBUGһϣ¬ÔÀ´»Ø´«Êǿյġ£
¿´¿´ºǫ́PHP£¬Ã²ËÆûʲôÎÊÌ⣨±¾À´ÒÔΪÊÇURLÎÊÌ⣩ȻºóÉÏÍøËÑһϣ¬ÔÀ´ÊÇPHPµÄjson_encodeº¯ÊýÔÚ5.2ϲÅÓÐ ......
<?php
header("content-type:text/html; charset=UTF-8");
/*
* record kid words and insert into database
* user by sending email to publication kid words
*
*/
include 'POP3.php';
include 'email_class.php';
include 'Mail_mimeDecode.php';
//include 'include/compatible ......
<?php
$HotSong="°®ÇéתÒÆ|¾Õ»¨Ì¨|Àë¸è|ÔÂÁÁÖ®ÉÏ|ÒþÐεijá°ò|Öйú»°|Çó·ð|ÇïÌì²»»ØÀ´|·¢ÏÖ°®|ÄѵÀ°®Ò»¸öÈËÓдíÂð|ǧÀïÖ®Íâ|Á¬¿Þ¶¼ÊÇÎҵĴí";
function HotSo($HotSong){
$HotSo='';
echo($HotSong);
$b=explode('|',$HotSong);
foreach ($b as $v) {
$HotSo.="<a href="song.php?song=".urlencode($v)."" mce_ ......