So, I can use getenv('HTTP_REFERER') to get an URL which the member has visited previously, but it works only if it’s the same website. I want this:
for example. the member firstly visits google.com then goes to my website. I want to show him, that previously he visited a google.com website. How can I do it if it’s possible?
So, I can use getenv(‘HTTP_REFERER’) to get an URL which the member has visited
Share
$_SERVER['HTTP_REFERER']works fine for either case, as long as they followed a link from google.com to get to your site. Example: http://mrozekma.com/referer.php