Summary of global variables by default in PHP

Source: Internet
Author: User
Tags http authentication

<? PHP
Echo "complete set of system default variable commands <p> ";
Echo
$ _ Server ['php _ Self ']. "<br> the file name of the script being executed, which is related to document root. <p> ",
$ _ Server ['argv']. "<br> parameters passed to the script <p> ",
$ _ Server ['argc ']. "<br> Number of command line parameters that are passed to the Program (if running in command line mode) <p> ",
$ _ Server ['Gateway _ interface']. "<br> the CGI standard version used by the server. For example, "cgi/1.1" <p> ",
$ _ Server ['server _ name']. "<br> name of the server host where the script is currently running <p> ",
$ _ Server ['server _ soft']. "<br> the string of the server identifier, which is provided in the header of the Response Request <p> ",
$ _ Server ['server _ Protocol']. "<br> name and version of the communication protocol on the request page. For example, "HTTP/1.0" <p> ",
$ _ Server ['request _ method']. "<br> the request method used to access the page. For example: "Get", "head", "Post", "put" <p> ",
$ _ Server ['query _ string']. "<br> query string <p> ",
$ _ Server ['document _ root']. "<br> the root directory of the document where the script is currently running. Define in the server configuration file <p> ",
$ _ Server ['HTTP _ Accept ']. "<br> Accept of the current request: Content in the header <p> ",
$ _ Server ['HTTP _ accept_charset ']. "<br> Accept-charset of the current request: Content in the header. Example: "iso-8859-1, *, UTF-8" <p> ",
$ _ Server ['HTTP _ accept_encoding ']. "<br> Accept-encoding of the current request: Content in the header. For example, "gzip" <p> ",
$ _ Server ['HTTP _ accept_language ']. "<br> Accept-language of the current request: Content in the header. For example, "en" <p> ",
$ _ Server ['HTTP _ connection']. "<br> connection of the current request: Content in the header. For example, "keep-alive" <p> ",
$ _ Server ['HTTP _ host']. "<br> current requested HOST: header content <p> ",
$ _ Server ['HTTP _ referer']. "<br> link to the URL of the previous page on the current page <p> ",
$ _ Server ['HTTP _ user_agent ']. "<br> user_agent of the current request: Content in the header <p> ",
$ _ Server ['https']. "<br> if you use https for access, it is set to a non-null value (on); otherwise, off is returned. <p> ",
$ _ Server ['remote _ ADDR ']. "<br> browsing the IP address of the user on the current page <p> ",
$ _ Server ['remote _ host']. "<br> browsing the host name of the user on the current page <p> ",
$ _ Server ['remote _ port']. "<br> the port used by the user to connect to the server <p> ",
$ _ Server ['script _ filename']. "<br> absolute path name of the currently executed script <p> ",
$ _ Server ['server _ admin']. "<br> administrator Information <p> ",
$ _ Server ['server _ port']. "<br> port used by the server <p> ",
$ _ Server ['server _ signature ']. "<br> a string containing the server version and virtual host name <p> ",
$ _ Server ['path _ translated ']. "<br> basic path of the file system where the current script is located (not the root directory of the document) <p> ",
$ _ Server ['script _ name']. "<br> contains the path of the current script. This is useful when the page needs to point to itself <p> ",
$ _ Server ['request _ URI ']. "<br> URI required to access this page ., For example, "/index.html" <p> ",
$ _ Server ['php _ auth_user ']. "<br> when PHP runs in the Apache module and uses the HTTP authentication function, this variable is the user name <p> ",
$ _ Server ['php _ auth_pw ']. "<br> when PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the password entered by the user <p> ",
$ _ Server ['auth _ type']. "<br> when PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the authentication type <p> ";
?>

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.