All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
php如何判断来访网页地址_[PHP教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/2/17 7:29:50 Browse times: 457 Comment times: 0

php如何判断来访网页地址_[PHP教程]


Head photo

Go homepage
Upload pictures
Write articles

php如何判断来访网页地址_[PHP教程] php利用系统函数"HTTP_REFERER"判断来访的网页地址

如注册用户时必须是来自某网址的

$str=@$_SERVER[’HTTP_REFERER’];//@为除错功能
if(strstr($str,www.code-123.com))//
echo "来自 www.code-123.com";
else
echo "其它网址";




There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.