php $_SERVER[‘HTTP_REFERER’]详解
ceshia.php
echo '<a href="ceshib.php">ceshib</a>';
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
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/19095.html