Some server information is often used in $ _ serverphp programming. The detailed parameters of $ _ server are sorted out for future use. $ _ Server ['php _ Self '] # currently being executed ScriptFile name, which is related to document root. $ _ Server ['argv'] # Pass to this Script. $ _ Server ['argc '] # include and pass ProgramOf Command Line Parameters(If the command line mode is running ). $ _ Server ['Gateway _ interface'] # The CGI standard version used by the server. For example, "cgi/1.1 ". $ _ Server ['server _ name'] # current Run scriptsServer Host. $ _ Server ['server _ soft'] # The string identified by the server, which is provided in the header of the Response Request. $ _ Server ['server _ Protocol'] # name and version of the communication protocol used to request the page. For example, "HTTP/1.0 ". $ _ Server ['request _ method'] # Request Method for accessing the page. For example, "get", "head", "Post", and "put ". $ _ Server ['query _ string'] # query string. $ _ Server ['document _ root'] # current Run scriptsThe root directory of the document. Defined in the server configuration file. $ _ Server ['HTTP _ Accept '] # accept of the current request: Content in the header. $ _ Server ['HTTP _ accept_charset '] # accept-charset of the current request: Content in the header. Example: "iso-8859-1, *, UTF-8 ". $ _ Server ['HTTP _ accept_encoding '] # accept-encoding of the current request: Content in the header. For example, "gzip ". $ _ Server ['HTTP _ accept_language '] # accept-language of the current request: Content in the header. For example, "en ". $ _ Server ['HTTP _ connection'] # connection of the current request: Content in the header. For example, "keep-alive ". $ _ Server ['HTTP _ host'] # host of the current request: Content in the header. $ _ Server [' Http_referer'] # Link to the URL of the previous page of the current page. $ _ Server [' Http_user_agent'] # User_agent of the current request: Content in the header. $ _ Server ['https']-If you access through https, it is set to a non-empty value (on ), otherwise, the system returns off $ _ server ['remote _ ADDR '] # browsing the IP address of the user on the current page. $ _ Server ['remote _ host'] # browsing the user's Host Name. $ _ Server ['remote _ port'] # The port used by the user to connect to the server. $ _ Server ['script _ filename'] # currently executed ScriptOf Absolute pathName. $ _ Server ['server _ admin'] # AdministratorInformation $ _ server ['server _ port'] # port used by the server $ _ server ['server _ signature '] # contains the server version and Virtual HostName string. $ _ Server ['path _ translated '] # current ScriptThe basic path of the file system (not the document root directory. $ _ Server ['script _ name'] # contains the current Script. This is useful when the page needs to point to itself. $ _ Server ['request _ URI '] # URI required to access this page. For example, "/index.html ". $ _ Server ['php _ auth_user '] # when PHP runs in the Apache module mode and is using the HTTP authentication function, this VariableIs the user name entered by the user. $ _ Server ['php _ auth_pw '] # when PHP runs in the Apache module mode and is using the HTTP authentication function, this VariableThe password entered by the user. $ _ Server ['request _ time'] stores the timestamp when the request is initiated. this parameter is available in PHP 5.1 and later versions.
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