Home >Backend Development >PHP Tutorial >Host 头信息(新人请问)

Host 头信息(新人请问)

WBOY
WBOYOriginal
2016-06-13 11:05:541083browse

Host 头信息(新人请教)


in_array($_SERVER ['HTTP_HOST'],array('www.baidu.com'))


我知道是判断Host 头信息中是否包含百度的网址,但这有什么意义?
还有$_SERVER这个变量的内容是什么时候放进去的?
------解决方案--------------------
有什么意义,看你的程序咯

$_SERVER 是超全局变量,当你访问脚本时就存在了。

Statement:
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