$_server[' Php_self ']#The file name of the currently executing script, which is related to document root. $_server[' argv ']#The arguments passed to the script. $_server[' ARGC ']#contains the number of command-line arguments passed to the program (if run in command-line mode). $_server[' Gateway_interface ']#The version of the CGI specification used by the server. For example, "cgi/1.1". $_server[' server_name ']#the name of the server host where the script is currently running. $_server[' Server_software ']#The string that the server identifies is given in the header in response to the request. $_server[' Server_protocol ']#the name and version of the communication protocol when the page is requested. For example, "http/1.0". $_server[' Request_method ']#the request method when the page is accessed. For example:, POST, PUT. $_server[' Query_string ']#a string that queries (query). $_server[' Document_root ']#the document root directory where the script is currently running. Defined in the server configuration file. $_server[' Http_accept ']#Accept for current request: The contents of the header. $_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". $_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. $_server[' Remote_port ']#the port that the user uses when connecting to the server. $_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. $_server[' Request_uri ']#The URI required to access this page. For example, "/index.html". $_server[' Php_auth_user ']#under the Apache module, and the HTTP authentication feature is being used, this variable is the user name entered by the user. $_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