0

我如何在drupal 6中找到当前页面的调用者页面的url。
是否有任何函数或类?

提前致谢。

4

1 回答 1

1

用于$_SERVER['HTTP_REFERER']获取调用者页面的 url。但它有一些错误。

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.

于 2012-11-21T05:56:09.377 回答