$_SERVER[]数组,各个成员的含义
$_SERVER['PHP_SELF']显示当前文件的所在的完整路径,例如:/opt/www/index-install-module.php
$_SERVER['argv']
传递给此文件的参数 组成的数组。Array of arguments passed to the script.
$_SERVER['argc']
传递给此脚本的命令行参数的数目。Contains the number of command line parameters passed to the script (if run on the command line).
$_SERVER['REMOTE_ADDR']
用户ip地址。例如:218.206.229.201。测试页面:http://tqybw.net/xiamen15tian/
$_SERVER['SERVER_ADDR']
此页面所在服务器的ip地址。例如:127.0.0.1
$_SERVER['SERVER_NAME']
此页面所在的服务器名称。例如:tqybw.net
$_SERVER['SERVER_SOFTWARE']
标识服务器的字符串。例如:Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1
$_SERVER['SERVER_PROTOCOL']
请求协议的名称和版本。例如:HTTP/1.1
$_SERVER['REQUEST_METHOD']
请求页面的方法。例如:GET
$_SERVER['REQUEST_TIME']
请求开始的时间戳。例如:1279187697
$_SERVER['QUERY_STRING']
请求的字符串。例如:i=love&you=yager
$_SERVER['DOCUMENT_ROOT']
文件根目录。这里是根目录。例如:E:/htdocs
$_SERVER['HTTP_ACCEPT']
$_SERVER['HTTP_HOST']
此部分还没搞明白,明白了在来补上
$_SERVER['HTTP_REFERER']
浏览器来到当前页面的上一个页面。例如:http//:tqybw.net/beijing15tian/
$_SERVER['HTTP_USER_AGENT']
标识浏览器。例如:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.458.1 Safari/534.3
$_SERVER['HTTPS']
$_SERVER['REMOTE_HOST']
$_SERVER['REMOTE_PORT']
用户机上链接web服务器的端口。例如:53566
$_SERVER['SCRIPT_FILENAME']
当前页面在服务器上的绝对路径。例如:E:/www/tianqi/index.php
$_SERVER['SERVER_ADMIN']
$_SERVER['SERVER_PORT']
web服务器端口。例如:80
$_SERVER['SERVER_SIGNATURE']
集成SERVER_SOFTWARE,SERVER_NAME,SERVER_PORT。例如:Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Server at localhost Port 80
$_SERVER['PATH_TRANSLATED']
$_SERVER['SCRIPT_NAME']
同PHP_SELF
$_SERVER['REQUEST_URI']
请求地址url。例如:/xiamen15tian/
$_SERVER['PHP_AUTH_DIGEST']
$_SERVER['PHP_AUTH_USER']
$_SERVER['PHP_AUTH_PW']
$_SERVER['AUTH_TYPE']
$_SERVER['PATH_INFO']