ThePhoenixRising Posted September 26, 2011 Share Posted September 26, 2011 I want to make an image that will get the url that the php image was requested from... I read the manual for the _SERVER superglobal, but I am still not clear on which element will do that. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/247906-way-to-get-url-of-page-requested-from/ Share on other sites More sharing options...
TOA Posted September 26, 2011 Share Posted September 26, 2011 $_SERVER['HTTP_REFERRER'] From the manual: 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. Quote Link to comment https://forums.phpfreaks.com/topic/247906-way-to-get-url-of-page-requested-from/#findComment-1272980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.