php $_SERVER['HTTP_REFERER']详解

php $_SERVER['HTTP_REFERER']详解

ceshia.php

echo 'ceshib';
ceshib.php
print_r($_SERVER['HTTP_REFERER']);
exit();
访问ceshia 然后点击ceshib连接 返回http://wx.newmiracle.cn/ceshia.php 如果直接访问ceshib 就会报错 Notice: Undefined index: HTTP_REFERER in F:\phpStudy\WWW\mircoweb\mircoweb\wwwroot\Public\ceshib.php on line 8

查看原文: http://newmiracle.cn/?p=1871

你可能感兴趣的:(php $_SERVER['HTTP_REFERER']详解)