PHPPHP经验分享

PHP $_SERVER 服务器信息及执行信息

2016-11-14  本文已影响38人  专职跑龙套

Server and execution environment information.
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here.

示例:加粗的为重点关注

访问 127.0.0.1/index.php?id=123&name=xiang


引用:
http://php.net/manual/en/reserved.variables.server.php

上一篇下一篇

猜你喜欢

热点阅读