PHP $_server Detailed

Source: Internet
Author: User
Tags http authentication

$_server['Remote_port']//Port. $_server['server_name']//the name of the server host. $_server['php_self']//the file name of the script being executed$_server['argv']//The arguments passed to the script. $_server['argc']//the number of command-line arguments passed to the program. $_server['Gateway_interface']//the version of the CGI specification. $_server['Server_software']//server-identified strings$_server['Server_protocol']//the name and version of the communication protocol when the page is requested$_server['Request_method']//request method when accessing a page$_server['query_string']//a string that queries (query). $_server['Document_root']//the document root directory where the current run script resides$_server['http_accept']//Accept for current request: The contents of the 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']//Connection of the current request: the contents of the header. For example: "Keep-alive". $_server['Http_host']//Host of the current request: the contents of the header. $_server['Http_referer']//the URL address of the previous page that links to the current page. $_server['http_user_agent']//User_agent of the current request: the contents of the header. $_server['HTTPS']//if accessed over HTTPS, it is set to a non-null value (on), otherwise it returns off$_server['Script_filename']//the absolute path name of the currently executing script. $_server['Server_admin']//Administrator Information$_server['Server_port']//the 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 to 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 the HTTP authentication feature, 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 the HTTP authentication function, 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 $_server Detailed

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.