PHP Common $_server Variable list

Source: Internet
Author: User
Tags http authentication

$_server[' http_accept_language '//Browser language $_server[' REMOTE_ADDR ']//Current user IP. $_server[' remote_host '//Current user hostname $_server[' request_uri ']//url$_server[' remote_port ']//port. $_server[' server_name '//name of the server host. $_server[' php_self ']//is executing the script's filename $_server[' argv ']//parameters passed to the script. $_server[' argc '///The number of command-line arguments passed to the program. Version of $_server[' Gateway_interface ']//cgi specification. $_server[' server_software '//server-identified string $_server[' Server_protocol ']//Request page when communication protocol name and version $_server[' Request_method ']// The request method for accessing the page $_server[' query_string '//query string. $_server[' document_root '///the document root directory where the current run script is located $_server[' http_accept '///the contents of the current request's ACCEPT: header. $_server[' http_accept_charset '///Accept-charset of the current request: the contents of the header. $_server[' http_accept_encoding '///accept-encoding of the current request: the contents of the header $_server[' http_connection '///Current request CONNECTION: The contents of the header. For example: "Keep-alive". $_server[' http_host '///Current requested HOST: The contents of the header. $_server[' http_referer '//link to the URL address of the previous page of 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 returns off$_server[' Script_fileName ']//The absolute pathname of the current execution script. $_server[' server_admin '//Administrator Information $_server[' server_port ']//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 of 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[' Php_auth_user '//When PHP is running in the Apache module mode and is using HTTP authentication, 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 HTTP authentication, this variable is the password entered by the user. $_server[' Auth_type '//When PHP is running in the Apache module mode and is using the HTTP authentication feature, this variable is the type of authentication

PHP Common $_server Variable list

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.