Description of common values in $_server
using url:http://www.pro.com/index.php?type=1&id=1
Dictation is not clear, directly on the result
[Script_name] =/index.php//contains the path of the current script
[Request_uri] = +/index.php?type=1&id=1//after domain name
[Query_string] = type=1&id=1//? Number behind the
[Request_method] = = GET//Request method
[Request_scheme] = HTTP//Use what protocol
[Document_root] = e:/demopro//access to the file root directory
[REMOTE_ADDR] = 127.0.0.1//Get the IP address of the client
[Http_x_forwarded_for]//The real IP address of the client obtained via proxy server may not
[HTTP_CLIENT_IP]//Get client, and the IP address of the computer where the browser is located may not
[Server_port] = 80//server port
[SERVER_ADDR] = 127.0.0.1//server IP address
[server_name] = www.pro.com//hostname
[Http_host] = www.pro.com//If present is the current request header in the HOST: the contents of the item,
Http_host = Server_name:server_port (default is ignored.) Using an SSL link, the port number will be displayed? )
[Request_time_float] = 1450940501.5163//timestamp at the start of the request, microsecond level accuracy. Starting from PHP 5.4.0
[Request_time] = 1450940501//timestamp at the start of the request. Available from PHP 5.1.0
[Http_user_agent] = mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/47.0.2526.106 safari/537.36
Official Document Http://php.net/manual/zh/reserved.variables.server.php
The above describes the common values in $_server, including the contents of the content, I hope that the PHP tutorial interested in a friend helpful.