In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "what are the parameters of $_ SERVER in PHP". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
$_ SERVER ['PHP_SELF'] # the file name of the currently executing script, related to document root.
$_ SERVER ['argv'] # parameters passed to the script.
$_ SERVER ['argc'] # contains the number of command line arguments passed to the program (if running in command line mode).
$_ SERVER ['GATEWAY_INTERFACE'] # version of the CGI specification used by the server. For example, "CGI/1.1".
$_ SERVER ['SERVER_NAME'] # the name of the server host on which the script is currently running.
$_ SERVER ['SERVER_SOFTWARE'] # the string identified by the server, given in the header when responding to the request.
$_ SERVER ['SERVER_PROTOCOL'] # the name and version of the communication protocol when the page is requested. For example, "HTTP/1.0".
$_ SERVER ['REQUEST_METHOD'] # request method when accessing the page. For example: "GET", "HEAD", "POST", "PUT".
The string of $_ SERVER ['QUERY_STRING'] # query (query).
$_ SERVER ['DOCUMENT_ROOT'] # the document root where the script is currently running. Defined in the server configuration file.
$_ SERVER ['HTTP_ACCEPT'] # the contents of the header of the currently requested Accept.
$_ SERVER ['HTTP_ACCEPT_CHARSET'] # the contents of the header of the currently requested Accept-Charset. For example: "iso-8859-1, magic, etc., 8".
$_ SERVER ['HTTP_ACCEPT_ENCODING'] # the contents of the header of the currently requested Accept-Encoding. For example: "gzip"
$_ SERVER ['HTTP_ACCEPT_LANGUAGE'] # the contents of the header of the currently requested Accept-Language. For example: "en"
$_ SERVER ['HTTP_CONNECTION'] # the contents of the header of the currently requested Connection. For example: "Keep-Alive"
$_ SERVER ['HTTP_HOST'] # the contents of the header of the currently requested Host.
$_ SERVER ['HTTP_REFERER'] # links to the URL address of the previous page of the current page.
$_ SERVER ['HTTP_USER_AGENT'] # the contents of the header of the currently requested User_Agent.
$_ SERVER ['HTTPS']-if accessed through https, it is set to a non-empty value (on), otherwise off is returned
$_ SERVER ['REMOTE_ADDR'] # browsing the IP address of the user on the current page.
$_ SERVER ['REMOTE_HOST'] # the hostname of the user browsing the current page.
$_ SERVER ['REMOTE_PORT'] # the port that the user uses when connecting to the server.
$_ SERVER ['SCRIPT_FILENAME'] # absolute pathname of the currently executing script.
$_ SERVER ['SERVER_ADMIN'] # administrator information
$_ SERVER ['SERVER_PORT'] # Port used by the server
$_ SERVER ['SERVER_SIGNATURE'] # contains a string for the server version and virtual hostname.
$_ SERVER ['PATH_TRANSLATED'] # the basic 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 ['REQUEST_URI'] # the URI required to access this page. For example, "/ index.html".
$_ SERVER ['PHP_AUTH_USER'] # when PHP is running in 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 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 Apache module mode and is using HTTP authentication, this variable is the type of authentication.
This is the end of "what are the parameters of $_ SERVER in PHP". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.