如何在drupal中找到当前页面的调用者页面

时间:2012-11-21 05:50:13

标签: php drupal-6

如何在drupal 6中找到当前页面的来电者页面的网址。
有没有任何功能或类?

提前致谢。

1 个答案:

答案 0 :(得分:1)

使用$_SERVER['HTTP_REFERER']获取来电者页面的网址。但它有一些错误。

The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.