php里重要的的系统变量
例如:当前处于地址:sitename/test/index,php
$_SERVER['SCRIPT_FILENAME']; // 绝对路径
$_SERVER["REMOTE_ADDR"]; //客户端ip
$_SERVER["SERVER_ADDR"]; //服务器ip
$_SERVER["REQUEST_TIME"]; //请求时间戳
$_SERVER["QUERY_STRING"]; //路径?后面的内容
$_SERVER["HTTP_REFERER"]; //上一页地址
$_SERVER["HTTP_USER_AGENT"]; //用户客户端信息
$_SERVER['HTTP_HOST'] //主机地址
$_SERVER['DOCUMENT_ROOT']: 根目录:sitename
$_SERVER['SCRIPT_NAME'] :根目录后面的 /test/index.php
$_SERVER['REQUEST_URI']; /test