PHP的$_SERVER变量笔记



URL: http://localhost/pro/test/index.php



Array

(

    [HTTP_HOST] => localhost

    [HTTP_CONNECTION] => keep-alive

    [HTTP_CACHE_CONTROL] => max-age=0

    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

    [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] => SESS29af1facda0a866a687d5055f2fade2c=TAUQsI-GdkDmkC6QGy6HP4gSk_1CiHYZtq_lfLuHW7E

    [PATH] => D:\Program Files\ProcessMaker-2_0_40\php;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\ActivIdentity\ActivClient\;D:\wamp\bin\mysql\mysql5.5.20\bin;D:\Program Files\TortoiseSVN\bin;D:\Program Files\Java\jdk1.5.0_22\bin;D:\Program Files\Bitvise Tunnelier;D:\wamp\bin\php\php5.3.8;D:\Soft\Java\android-sdk-windows\tools;D:\Program Files\MinGW32\bin;D:\Program Files\Java\jdk1.7.0_02\bin;C:\Program Files\nodejs\

    [SystemRoot] => C:\WINDOWS

    [COMSPEC] => C:\WINDOWS\system32\cmd.exe

    [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

    [WINDIR] => C:\WINDOWS

    [SERVER_SIGNATURE] => 

    [SERVER_SOFTWARE] => Apache/2.2.21 (Win32) PHP/5.3.10

    [SERVER_NAME] => localhost

    [SERVER_ADDR] => 127.0.0.1

    [SERVER_PORT] => 80

    [REMOTE_ADDR] => 127.0.0.1

    [DOCUMENT_ROOT] => D:/wamp/www/

    [SERVER_ADMIN] => admin@localhost

    [SCRIPT_FILENAME] => D:/wamp/www/pro/test/index.php

    [REMOTE_PORT] => 4036

    [GATEWAY_INTERFACE] => CGI/1.1

    [SERVER_PROTOCOL] => HTTP/1.1

    [REQUEST_METHOD] => GET

    [QUERY_STRING] => 

    [REQUEST_URI] => /pro/test/index.php

    [SCRIPT_NAME] => /pro/test/index.php

    [PHP_SELF] => /pro/test/index.php

    [REQUEST_TIME] => 1344941362

)

  

 

你可能感兴趣的:(server)