服務器變量 $_SERVER 彙總介紹:php
_SERVER = Array ( [HTTP_HOST] => localhost [HTTP_CONNECTION] => keep-alive [HTTP_CACHE_CONTROL] => max-age=0 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11 CoolNovo/2.0.2.26 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch [HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.8 [HTTP_ACCEPT_CHARSET] => GBK,utf-8;q=0.7,*;q=0.3 [HTTP_COOKIE] => adminer_schema=ob2_adminlog%3A5.279x11.3222_ob2_config%3A41.6766x23.3389_ob_guestbook%3A234.2228x19.5186;ys-upload_tabpanel=o%3AactiveTab%3Dn%253A0;ys-dirTree=o%3Awidth%3Dn%253A176 [PATH] => C:\Program Files\PC Connectivity Solution\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jdk1.6.0_10;C:\Program Files\TortoiseSVN\bin; [SystemRoot] => C:\windows [COMSPEC] => C:\windows\system32\cmd.exe [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC [WINDIR] => C:\windows [SERVER_SIGNATURE] => Apache/2.2.13 (Win32) PHP/5.2.10 Server at localhost Port 80 [SERVER_SOFTWARE] => Apache/2.2.13 (Win32) PHP/5.2.10 [SERVER_NAME] => localhost [SERVER_ADDR] => 127.0.0.1 [SERVER_PORT] => 80 [REMOTE_ADDR] => 127.0.0.1 [DOCUMENT_ROOT] => D:/wwwroot/ [SERVER_ADMIN] => admin@admin.com [SCRIPT_FILENAME] => D:/wwwroot/www/explorer/index.php [REMOTE_PORT] => 56021 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /www/explorer/ [SCRIPT_NAME] => /www/explorer/index.php [PHP_SELF] => /www/explorer/index.php [REQUEST_TIME] => 1335941365 [argv] => Array ( ) [argc] => 0 )