PHP pre-defined $_server instances, all $_server begin with predefined service variables. , _server instances
PhpHeader("Content-type:text/html;charset=utf8");Echo"Error_reporting=>".error_reporting(E_all)."
";Echo"Php_self=>".$_server[' Php_self ']. "
";#The file name of the currently executing script, which is related to document root. Echo"Argv=>".$_server[' argv ']. "
";#The arguments passed to the script. Echo"Argc=>".$_server[' ARGC ']. "
";#contains the number of command-line arguments passed to the program (if run in command-line mode). Echo"Gateway_interface=>".$_server[' Gateway_interface ']. "
";#The version of the CGI specification used by the server. For example, "cgi/1.1". Echo"Server_name=>".$_server[' server_name ']. "
";#the name of the server host where the script is currently running. Echo"Server_software=>".$_server[' Server_software ']. "
";#The string that the server identifies is given in the header in response to the request. Echo"Server_protocol=>".$_server[' Server_protocol ']. "
";#the name and version of the communication protocol when the page is requested. For example, "http/1.0". Echo"Request_method=>".$_server[' Request_method ']. "
";#the request method when the page is accessed. For example:, POST, PUT. Echo"Request_time=>".Date("Y-m-d h:s:i",$_server[' Request_time ']). "
";#timestamp when the request startedEcho"Query_string=>".$_server[' Query_string ']. "
";#a string that queries (query). Echo"Document_root=>".$_server[' Document_root ']. "
";#the document root directory where the script is currently running. Defined in the server configuration file. Echo"Http_accept=>".$_server[' Http_accept ']. "
";#Accept for current request: The contents of the header. Echo"Http_accept_charset=>".$_server[' Http_accept_charset ']. "
";#Accept-charset of the current request: the contents of the header. For example: "Iso-8859-1,*,utf-8". Echo"Http_accept_encoding=>".$_server[' http_accept_encoding ']. "
";#accept-encoding of the current request: the contents of the header. For example: "gzip". Echo"Http_accept_language=>".$_server[' Http_accept_language ']. "
";#Accept-language of the current request: the contents of the header. For example: "en". Echo"Http_connection=>".$_server[' Http_connection ']. "
";#Connection of the current request: the contents of the header. For example: "Keep-alive". Echo"Http_host=>".$_server[' Http_host ']. "
";#Host of the current request: the contents of the header. Echo"Http_referer=>".$_server[' Http_referer ']. "
";#a tag jumps to the URL address of the previous page that links to the current page. Echo"Http_user_agent=>".$_server[' Http_user_agent ']. "
";#User-agent of the current request: the contents of the header. Echo"Https=>".$_server[' HTTPS ']. "
";#if accessed over HTTPS, it is set to a non-null value (on), otherwise it returns offEcho"Remote_addr=>".$_server[' REMOTE_ADDR ']. "
";#the IP address of the user who is browsing the current page. Echo"Remote_host=>".$_server[' Remote_host ']. "
";#the host name of the user who is browsing the current page. Echo"Remote_port=>".$_server[' Remote_port ']. "
";#the port that the user uses when connecting to the server. Echo"Script_filename=>".$_server[' Script_filename ']. "
";#the absolute path name of the currently executing script. Echo"Server_admin=>".$_server[' Server_admin ']. "
";#Administrator InformationEcho"Server_port=>".$_server[' Server_port ']. "
";#the port used by the serverEcho"Server_signature=>".$_server[' Server_signature ']. "
";#A string containing the server version and the virtual host name. Echo"Path_translated=>".$_server[' path_translated ']. "
";#the base path to the file system (not the document root) where the current script resides. Echo"Script_name=>".$_server[' Script_name ']. "
";#contains the path to the current script. This is useful when the page needs to point to itself. Echo"Request_rui=>".$_server[' Request_uri ']. "
";#The URI required to access this page. For example, "/index.html". Echo"__file__=>".__file__."
";
http://www.bkjia.com/PHPjc/1051219.html www.bkjia.com true http://www.bkjia.com/PHPjc/1051219.html techarticle PHP pre-defined $_server instances, all $_server begin with predefined service variables. , _server instance style body{background: # EEE;}/style? PHP header ("Content-type:text/html;cha ...