Description of common values in $_server

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.