Home > php教程 > php手册 > body text

PHP中$_SERVER的详细说明

WBOY
Release: 2016-06-06 20:09:12
Original
836 people have browsed it

PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。$_SERVER['PHP_SELF']#当前正在执行脚本的文件名,与documentroot相关。$_SERVER['argv']#传递给该脚本的参数。$_SERVER['argc']#包含传递给程序的命令行参数的个

PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用。$_SERVER['PHP_SELF']#当前正在执行脚本的文件名,与documentroot相关。 $_SERVER['argv']#传递给该脚本的参数。 $_SERVER['argc']#包含传递给程序的命令行参数的个数(如果运行在命令行模式)。 $_SERVER['GATEWAY_INTERFACE']#服务器使用的CGI规范的版本。例如,“CGI/1.1”。 $_SERVER['SERVER_NAME']#当前运行脚本所在服务器主机的名称。 $_SERVER['SERVER_SOFTWARE']#服务器标识的字串...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!