$root = getenv(‘DOCUMENT_ROOT’); ////服务器文档根目录$port = getenv(‘SERVER_PORT’); ////服务器端口$file = getenv(‘scr ipt_NAME’); ////当前执行文件$ua = getenv(‘HTTP_USER_AGENT’); ////用户UA$method = getenv(‘REQUEST_METHOD’); ////请求方法$protocol = getenv(‘SERVER_PROTOCOL’);