I have organized PHP server variables: $

xiaoxiao2021-03-06  35

I have organized a PHP server variable: $ _ server, it is better to find when I use it. ^^

* * HomePage: http://seo.2288.org:99 * * Sitename: Green College - Green Institute * * Date: 2005-2-11 2:27:18 * * PHP server variable: $ _ server * / ***************** ******************************* ECHO $ ​​_SERVER ['php_self']. '. $ _ server [' Argv '].'. $ _ server ['argc']. ''. $ _ server ['Gateway_Interface']. '' '. $ _ server [' Server_name '].' '. $ _ server_software']. '. $ _ server [' server_protocol '].' ''. $ _ server ['Request_Method']. ' $ _ Server ['query_string']. ''. $ _ Server ['Document_Root']. ''. $ _ Server ['http_accept']. ''. $ _ Server [' HTTP_ACCEPT_CHARSET '].' ''. $ _ Server ['http_accept_encoding']. ''. $ _ Server ['http_accept_language']. '' '. $ _ Server [' http_connection '].' '. $ _ Server [' HTTP_USER_AGENT '].' ''. $ _ Server ['http_user_agent']. '.'. '.$ _ Server ['remote_addr']. ''. $ _ Server ['Remote_host']. ''. $ _ Server ['Remote_Port']. ''. $ _ Server [' Script_filename '].' '. $ _ Server [' Server_admin '].' '. $ _ Server [' Server_Port '].' <

Br /> '. $ _ Server [' server_signature '].' '. $ _ Server [' Path_Translated '].'. $ _ Server ['script_name']. '.' $ _SERVER ['Request_uri']. '. $ _ Server [' php_auth_user '].' # When PHP is running in the Apache module mode, and is using H. $ _ server ['php_auth_pw' ]. '# When PHP runs in the Apache module mode, and is using H._ server [' auth_type '].' # When PHP is running in the Apache module, and is using H;?> ***************************************************************************** Related. # Parameters passing to this script. # Contains the number of command line parameters passed to the program (if running in command line mode). # Version of the CGI specification used by the server. For example, "CGI / 1.1". # Currently run the name of the server host where the script is located. # The string of the server identifier is given in the header when the request is requested. # Request the name and version of the communication protocol when the page is requested. For example, "http / 1.0". # Request method when accessing the page. For example: "Get", "Head", "POST", "PUT". # Q q q 's strings. # Currently run the document root directory where the script is located. Define in the server profile. # Currently requested ACCEPT: The content of the header. # Currently requested Accept-Charset: The content of the header. For example: "ISO-8859-1, *, UTF-8" # Currently requested Accept-Encoding: Head content. For example: "gzip". # Currently requested Accept-Language: The content of the header. For example: "en". # Currently requested Connection: The content of the header. For example: "Keep-alive". # Currently requested Host: The content of the header. # Link to the URL address of the previous page of the current page. # Currently requested User_Agent: The content of the header. #Briever's IP address of the current page user. #Briever's host name of the current page user. # The port used when the user is connected to the server. # The absolute path name of the current execution script. # Administrator Information # The port # of the server used # contains the string of the server version and the virtual hostname. # The basic path of the file system (not the document root directory) where the current script is located. # Contain the path to the current script. This is very useful when you need to point to yourself. # Access the URI required for this page. For example, "/ INDEX.html". TTP authentication function, this variable is the username input by the user. TTP authentication function, this variable is the password entered by the user. TTP authentication function, this variable is the type of authentication. Content:

/ ************************************************** *************** /

*

* Author: Emerald

*

* HomePage: http://gi.2288.org:88/*

* SEO-GI: http://seo.2288.org:99

*

* Sitename: Green College - Green Institute

*

* Date: 2005-2-11 2:27:18

*

* PHP server variable: $ _ server

*

/ ************************************************** *************** /

echo

$ _SERVER ['php_self']. '# The file name of the script is currently being executed, and is related to Document Root.

. $ _ Server ['argv']. '# Parameters pass to the script.

$ _ Server ['argc']. '# Contains the number of command line parameters passed to the program (if running in command line mode).

. - Server ['Gateway_Interface']. '# The CGI specification used by the' # server. For example, "CGI / 1.1".

$ _ Server ['server_name']. '# The name of the server host where the script is currently running the script.

. $ _ Server ['server_software']. '# Server identifier is given in the head in the response 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']. '# The request method when accessing the page. For example: "Get", "Head", "POST", "PUT".

. $ _ Server ['query_string']. '# Query (Query) string.

$ _ Server ['Document_Root']. '# The document root directory where the script is currently running. Define in the server profile.

. $ _ Server ['http_accept']. '# The current requesting Accept: The content of the header.

$ _ Server ['http_accept_charset']. '# The current request Accept-Charset: The content of the header. For example: "ISO-8859-1, *, UTF-8".

. $ _ Server ['http_accept_encoding']. '# The current request for accept-encoding: The content of the header. For example: "gzip".

. $ _ Server ['http_accept_language']. '# Currently requested Accept-Language: The head of the header. For example: "en".

. $ _ Server ['http_connection']. '# Current Request Connection: The content of the header. For example: "Keep-alive".

. $ _ Server ['http_host']. '# The current request Host: The head of the header. $ _ Server ['http_referer']. '# Links to the URL address of the previous page of the current page.

. $ _ Server ['http_user_agent']. '# The current request User_Agent: The head of the header.

. $ _ Server ['transote_addr']. '# Is browsing the IP address of the current page user.

. $ _ Server ['transote_host']. '# Is browsing the host name of the current page user.

. $ _ Server ['recote_port']. '# The user used to connect to the server.

. $ _ Server ['script_filename']. '# The absolute path name of the script is currently executed.

. $ _ Server ['Server_admin']. '# Administrator Information

. $ _ Server ['server_port']. '# The port used by the server

$ _ Server ['server_signature']. '# Contains a string of the server version and the virtual hostname.

. $ _ Server ['Path_Translated']. '# The basic path of the file system (not the document root directory) where the current script is located.

$ _ Server ['script_name']. '# Contains the path to the current script. This is very useful when you need to point to yourself.

. $ _ Server ['request_uri']. '# Accessed the URI required for this page. For example, "/ INDEX.html".

. $ _ Server ['PHP_AUTH_USER']. ''

# When PHP is running in the Apache module, and the HTTP authentication function is being used, this variable is the username input by the user.

. $ _ Server ['php_auth_pw']. '

# When PHP runs in the Apache module, and the HTTP authentication function is being used, this variable is the password entered by the user.

. $ _ Server ['Auth_Type']. ''

# When PHP is running in the Apache module, and the HTTP authentication function is being used, this variable is the type of authentication.

;

?>

转载请注明原文地址:https://www.9cbs.com/read-59006.html

New Post(0)