PHP ÖÐ$_SERVERµÄ²ÎÊýºÍÓ÷¨ËµÃ÷
$_SERVER['PHP_SELF'] #µ±Ç°ÕýÔÚÖ´Ðнű¾µÄÎļþÃû£¬Óëdocument rootÏà¹Ø¡£
$_SERVER['argv'] #´«µÝ¸ø¸Ã½Å±¾µÄ²ÎÊý
$_SERVER['argc'] #°üº¬´«µÝ¸ø³ÌÐòµÄÃüÁîÐвÎÊýµÄ¸öÊý£¨Èç¹ûÔËÐÐÔÚÃüÁîÐÐģʽ£©¡£
$_SERVER['GATEWAY_INTERFACE'] #·þÎñÆ÷ʹÓÃµÄ CGI ¹æ·¶µÄ°æ±¾¡£ÀýÈ磬“CGI/1.1
$_SERVER['SERVER_NAME'] #µ±Ç°ÔËÐнű¾ËùÔÚ·þÎñÆ÷Ö÷»úµÄÃû³Æ
$_SERVER['SERVER_SOFTWARE'] #·þÎñÆ÷±êʶµÄ×Ö´®£¬ÔÚÏìÓ¦ÇëÇóʱµÄÍ·²¿Öиø³ö
$_SERVER['SERVER_PROTOCOL'] #ÇëÇóÒ³ÃæʱͨÐÅÐÒéµÄÃû³ÆºÍ°æ±¾¡£ÀýÈ磬“HTTP/1.0
$_SERVER['REQUEST_METHOD'] #·ÃÎÊÒ³ÃæʱµÄÇëÇó·½·¨¡£ÀýÈ磺“GET”¡¢“HEAD”£¬“POST”£¬“PUT”¡£
$_SERVER['QUERY_STRING'] #²éѯ(query)µÄ×Ö·û´®
$_SERVER['DOCUMENT_ROOT'] #µ±Ç°ÔËÐнű¾ËùÔÚµÄÎĵµ¸ùĿ¼¡£ÔÚ·þÎñÆ÷ÅäÖÃÎļþÖж¨Òå
$_SERVER['HTTP_ACCEPT'] #µ±Ç°ÇëÇóµÄ Accept: Í·²¿µÄÄÚÈÝ,±ÈÈç
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
$_SERVER['HTTP_ACCEPT_CHARSET'] #µ±Ç°ÇëÇóµÄ Accept-Charset: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“iso-8859-1,*,utf-8
$_SERVER['HTTP_ACCEPT_ENCODING'] #µ±Ç°ÇëÇóµÄ Accept-Encoding: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“gzip
$_SERVER['HTTP_ACCEPT_LANGUAGE'] #µ±Ç°ÇëÇóµÄ Accept-Language: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“en
$_SERVER['HTTP_CONNECTION'] #µ±Ç°ÇëÇóµÄ Connection: Í·²¿µÄÄÚÈÝ¡£ÀýÈ磺“Keep-Alive
$_SERVER['HTTP_HOST'] #µ±Ç°ÇëÇóµÄ Host: Í·²¿µÄÄÚÈÝ¡£
$_SERVER['HTTP_REFERER'] #Á´½Óµ½µ±Ç°Ò³ÃæµÄÇ°Ò»Ò³ÃæµÄ URL µØÖ·¡£
$_SERVER['HTTP_USER_AGENT'] #µ±Ç°ÇëÇóµÄ User_Agent: Í·²¿µÄÄÚÈÝ£¬±ÈÈ磺
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9b3) Gecko/2008020514 Firefox/3.0b3\n\n
$_SERVER['REMOTE_ADDR'] #ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄ IP µØÖ·¡£
$_SERVER['REMOTE_HOST'] #ÕýÔÚä¯ÀÀµ±Ç°Ò³ÃæÓû§µÄÖ÷»úÃû
$_SERVER['REMOTE_PORT'] #Óû§Á¬½Óµ½·þÎñÆ÷ʱËùʹÓõĶ˿Ú
$_SERVER['scrīpt_FILENAME'] #µ±Ç°Ö´Ðнű¾µÄ¾ø¶Ô·¾¶Ãû
$_SERVER['SERVER_AD
Ïà¹ØÎĵµ£º
×ÜÌå¶øÂÛ£¬Ò»¸öºÃµÄIDEÐèÒªÂú×ãµÄ¹¦ÄÜ£º
¡·1.
»ù±¾µÄIDEÒªÇ󣺴úÂë¹ÜÀí£¬±à¼Æ÷µÄ¸÷ÖÖÖÇÄܹ¦Äܵȣ»
¡·2. ÔËÐкÍdebug£º¿ÉÒÔ±¾µØÔ¶³Ì·Ö±ðscriptºÍweb
page½øÐÐrunºÍdebug£»
¡·3. ÓÉÓÚPHP¿ª·¢µÄͨ³£¹ý³Ì¶¼ÊÇ£º´úÂëÔÚremoteµÄserverÉÏ£¬¿ª·¢ÈËÔ±µÄ»úÆ÷ÐèҪͨ¹ýFTP»òÕßSSHÁ¬½Óµ½serverÉϽøÐпª·¢ºÍµ÷ÊÔ£¬Òò´ËÈç¹ûIDEÔÚÈç ......
1.1
exit() º¯ÊýÊä³öÒ»ÌõÏûÏ¢£¬²¢Í˳öµ±Ç°½Å±¾¡£
Èç¹û status
ÊÇ×Ö·û´®£¬Ôò¸Ãº¯Êý»áÔÚÍ˳öÇ°Êä³ö×Ö·û´®¡£
Èç¹û status
ÊÇÕûÊý£¬Õâ¸öÖµ»á±»ÓÃ×÷Í˳ö״̬¡£Í˳ö״̬µÄÖµÔÚ 0 ÖÁ 254 Ö®¼ä¡£Í˳ö״̬ 255 ÓÉ PHP ±£Áô£¬²»»á±»Ê¹Óá£×´Ì¬ 0 ÓÃÓڳɹ¦µØÖÕÖ¹³ÌÐò¡£
1.2
301 Moved Permanently ¿Í»§ÇëÇóµÄÎĵµÔÚÆäËûµØ·½£¬ ......
ÔÚIIS»ù´¡ÉϽ¨Á¢PHP»·¾³×Ü»á³öÏÖÕâÑù»òÄÇÑùµÄÎÊÌ⣬ºÜ¶àÎÊÌⶼ±È½ÏÄѽâ¾ö£¬±ÊÕß×î½üÔÚ½¨Á¢IISÏÂPHP»·¾³Ê±¾ÍÓöµ½Á˳öÏÖ·ÃÎʳö´íµÄÎÊÌ⣬ËùÓÐphpÒ³ÃæÎļþÎÞ·¨Õý³£ÏÔʾ³öÀ´£¬¶øASP»¹ÓÐHTML¾²Ì¬Ò³ÃæÄܹ»Ë³Àû·ÃÎÊ¡£ÏÂÃæ¾ÍÇë¸÷λIT168µÄ¶ÁÕßËæÎÒÒ»Æð´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ¡£
Ò»¡¢¹ÊÕÏÏÖÏó£º
±ÊÕß´î½ ......
ÏÈ˵ÏÂÔÚ×öµÄ¹ý³ÌÖÐÓöµ½µÄһЩÎÊÌ⣬ÒÔ¼°½â¾öµÄ·½·¨°É
1.¹ØÓÚÊéд´íÎó
×ʼ×öµÄÊÇÒ»¸öµÇ½ģ¿é£¬ÔڵǽÑéÖ¤µÄʱºò£¬Ê¹ÓÃ$_POST½ÓÊյIJÎÊý£¬È»ºóÔÚÑéÖ¤µÄʱºò£¬È´ÔõôҲ½ÓÊÕ²»µ½ÕâÁ½¸öÖµ£¬ºóÀ´²Å·¢ÏÖ$_POSTд´íÁË£¬Ð´³É$POST ÉÙ¸öÏ»®Ïߣ¬½á¹ûÎÞ·¨ÕýÈ·µÄÑéÖ¤£¬ºÜÊÇÓôÃÆ¡£»¨Á˺ó¤Ê±¼ä£¬²ÅÕÒµ½ÔÒò£¬¶øÇÒ»¹ÊÇÒ»¸öµÍ ......