How does php determine the address of the visiting web page
How does php determine the address of the visiting web page:
PHP uses the system function "HTTP_REFERER" to determine the visiting web page address
If you register as a user, you must come from a certain website
$str=@$_SERVER[’HTTP_REFERER’];//@ is the debugging function
if(strstr($str,www.code-123.com))//
echo "from www.code-123.com";
else
echo "Other URL";
http://www.bkjia.com/PHPjc/845127.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/845127.htmlTechArticleHow does php determine the address of the visiting web page? How does php determine the address of the visiting web page: php uses the system function HTTP_REFERER to determine the address of the visiting web page, such as When registering a user, it must be $s from a certain URL...