PHP programming often need to use some of the server's information, special $_server detailed parameters to organize, convenient for later use.
$_server[' php_self ' #当前正在执行 the file name of the script, which is related to document root.
$_server[' argv '] #传递给该 the parameters of the script.
$_server[' argc ' #包含传递给程序的 the number of command-line arguments (if run in command-line mode).
$_server[' Gateway_interface ') #服务器使用的 the version of the CGI specification. For example, "cgi/1.1".
$_server[' server_name ' #当前 the name of the server host where the script is running.
$_server[' Server_software '] #服务器标识的字串, given in the header in response to the request.
$_server[' Server_protocol '] #请求页面时通信协议的名称和版本. For example, "http/1.0".
$_server[' Request_method '] #访问页面时的请求方法. For example:, POST, PUT.
A string of $_server[' query_string '] #查询 (QUERY).
$_server[' Document_root ' #当前 the document root directory where the script is run. Defined in the server configuration file.
$_server[' http_accept ' #当前请求的 ACCEPT: The contents of the head.
$_server[' Http_accept_charset '] #当前请求的 Accept-charset: The contents of the head. For example: "Iso-8859-1,*,utf-8".
$_server[' http_accept_encoding '] #当前请求的 accept-encoding: The contents of the head. For example: "gzip".
$_server[' http_accept_language '] #当前请求的 accept-language: The contents of the head. For example: "en".
$_server[' http_connection '] #当前请求的 CONNECTION: The contents of the head. For example: "Keep-alive".
$_server[' Http_host '] #当前请求的 HOST: The contents of the head.
$_server[' Http_referer '] #链接到当前页面的前一页面的 URL address.
$_server[' http_user_agent '] #当前请求的 user-agent: The contents of the head.
$_server[' HTTPS '-if accessed over HTTPS, it is set to a non-null value (on), otherwise it returns off
$_server[' REMOTE_ADDR '] #正在浏览当前页面用户的 IP address.
$_server[' Remote_host '] #正在浏览当前页面用户的 host name.
$_server[' Remote_port '] #用户连接到服务器时所使用的端口.
$_server[' Script_filename '] #当前执行 the absolute path name of the script.
$_server[' server_admin ' # Administrator information
$_server[' Server_port '] #服务器所使用的端口
$_server[' server_signature ') #包含服务器版本和 a string of virtual hostname.
$_server[' path_translated ' #当前 the basic path of the file system (not the document root) where the script resides.
$_server[' Script_name '] #包含当前 the path to the script. This is useful when the page needs to point to itself.
$_server[' Request_uri '] #访问此页面所需的 URI. For example, "/index.html"
$_server the detailed parameters of the