sniped22 Posted July 1, 2007 Share Posted July 1, 2007 how do i get the last link that someone was at? or better yet, when someone clicks a link from abc.com that takes them to def.com, how do i find out that abc.com's link was clicked if my site is def.com. I know there is something about a referrer, but don't know how to implement/even what it is. Thanks! Link to comment https://forums.phpfreaks.com/topic/58002-referrer/ Share on other sites More sharing options...
pocobueno1388 Posted July 1, 2007 Share Posted July 1, 2007 $_SERVER['HTTP_REFERER'] Link to comment https://forums.phpfreaks.com/topic/58002-referrer/#findComment-287473 Share on other sites More sharing options...
sniped22 Posted July 2, 2007 Author Share Posted July 2, 2007 and if i want to find out the referer's base address (abc.com out of forum.abc.com or forum.abc.com/viewtopic.php?t=[random numbers]) Thanks again Link to comment https://forums.phpfreaks.com/topic/58002-referrer/#findComment-287494 Share on other sites More sharing options...
AndyB Posted July 2, 2007 Share Posted July 2, 2007 http://ca.php.net/manual/en/function.parse-url.php Link to comment https://forums.phpfreaks.com/topic/58002-referrer/#findComment-287518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.