1 $_server[' Php_self ']#The file name of the currently executing script, which is related to document root. 2 $_server[' argv ']#The arguments passed to the script. 3 $_server[' ARGC ']#contains the number of command-line arguments passed to the program (if run in command-line mode). 4 $_server[' Gateway_interface ']#The version of the CGI specification used by the server. For example, "cgi/1.1". 5 $_server[' server_name ']#the name of the server host where the script is currently running. 6 $_server[' Server_software ']#The string that the server identifies is given in the header in response to the request. 7 $_server[' Server_protocol ']#the name and version of the communication protocol when the page is requested. For example, "http/1.0". 8 $_server[' Request_method ']#the request method when the page is accessed. For example:, POST, PUT. 9 $_server[' Query_string ']#a string that queries (query). Ten $_server[' Document_root ']#the document root directory where the script is currently running. Defined in the server configuration file. One $_server[' Http_accept ']#Accept for current request: The contents of the header. A $_server[' Http_accept_charset ']#Accept-charset of the current request: the contents of the header. For example: "Iso-8859-1,*,utf-8". - $_server[' Http_accept_encoding ']#accept-encoding of the current request: the contents of the header. For example: "gzip". - $_server[' Http_accept_language ']#Accept-language of the current request: the contents of the header. For example: "en". the $_server[' Http_connection ']#Connection of the current request: the contents of the header. For example: "Keep-alive". - $_server[' Http_host ']#Host of the current request: the contents of the header. - $_server[' Http_referer ']#the URL address of the previous page that links to the current page. - $_server[' Http_user_agent ']#User_agent of the current request: the contents of the header. + $_server[' HTTPS ']-if accessed via HTTPS,is set to a non-null value (on), otherwise it returns off - $_server[' REMOTE_ADDR ']#the IP address of the user who is browsing the current page. + $_server[' Remote_host ']#the host name of the user who is browsing the current page. A $_server[' Remote_port ']#the port that the user uses when connecting to the server. at $_server[' Script_filename ']#the absolute path name of the currently executing script. - $_server[' Server_admin ']#Administrator Information - $_server[' Server_port ']#the port used by the server - $_server[' Server_signature ']#A string containing the server version and the virtual host name. - $_server[' path_translated ']#the base path to the file system (not the document root) where the current script resides. - $_server[' Script_name ']#contains the path to the current script. This is useful when the page needs to point to itself. in $_server[' Request_uri ']#The URI required to access this page. For example, "/index.html". - $_server[' Php_auth_user ']#when PHP is running in the Apache module mode and is using the HTTP authentication feature, this variable is the user name entered by the user. to $_server[' PHP_AUTH_PW ']#when PHP is running in the Apache module mode and is using the HTTP authentication function, this variable is the password entered by the user. + $_server[' Auth_type ']#This variable is the type of authentication when PHP is running in the Apache module mode and is using the HTTP authentication feature.
Detailed parameters and descriptions of $_server in PHP