php如何判断来访网页地址
php如何判断来访网页地址:
php利用系统函数"HTTP_REFERER"判断来访的网页地址
如注册用户时必须是来自某网址的
$str=@$_SERVER[’HTTP_REFERER’];//@为除错功能
if(strstr($str,www.code-123.com))//
echo "来自 www.code-123.com";
else
echo "其它网址";
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