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

Host 头信息(新人请问)

WBOY
Release: 2016-06-13 12:57:49
Original
910 people have browsed it

Host 头信息(新人请教)


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


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

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

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template