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! Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 1, 2007 Share Posted July 1, 2007 $_SERVER['HTTP_REFERER'] Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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.