如何在drupal 6中找到当前页面的来电者页面的网址。
有没有任何功能或类?
提前致谢。
答案 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.