【发布时间】:2014-05-26 12:22:12
【问题描述】:
如何获取加载源页面的请求页面名称或uri。
解释如下:
index.php
<?php
header('Location:target.php');
?>
目标.php
<?php
// How to check here if the redirection has happened from index.php
?>
【问题讨论】:
-
试过
echo $_SERVER['HTTP_REFERER'];?
标签: php