[2006/04/09 21:46 | by andyli]
Collect, good stuff
/**********************
*
* Author: Emerald
*
* Homepage: http://gi.2288.org: 88/
*
* Sitename: Green School-Green Institute
*
* Date: 2005-2-11 2:27:18
*
* Php server variable: $ _ SERVER
*
**********************/
Echo
$ _ SERVER ['php _ SELF '].'
'# File Name of the script being executed, which is related to document root.
. $ _ SERVER ['argv'].'
'# Parameters passed to the script.
. $ _ SERVER ['argc '].'
'# Contains the number of command line parameters passed to the Program (if it is in command line mode ).
. $ _ SERVER ['Gateway _ interface'].'
'# The CGI standard version used by the server. For example, "CGI/1.1 ".
. $ _ SERVER ['server _ name'].'
'# Name of the server host where the script is currently running.
. $ _ 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 on the request 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'].'
'# The root directory of the file where the script is currently running. 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 ['remote _ ADDR '].'
'# Browsing the IP address of the user on the current page.
. $ _ SERVER ['remote _ host'].'
'# The Host Name of the user browsing the current page.
. $ _ SERVER ['remote _ port'].'
'# The port used by the user to connect to the server.
. $ _ SERVER ['script _ filename'].'
'# The absolute path name of the currently executed 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 virtual host name.
. $ _ SERVER ['path _ TRANSLATED '].'
'# Basic path of the file system (not the document root directory) where the current script is located.
. $ _ SERVER ['script _ name'].'
'# Path containing 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 uses the HTTP authentication function, this variable is 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 variable is the password entered by the user.
. $ _ SERVER ['auth _ type'].'
'
# When PHP runs in the Apache module mode and uses the HTTP authentication function, this variable is the authentication type.
$ _ SERVER ['php _ SELF '].'
'# File Name of the script being executed, which is related to document root.
?>