shadiadiph Posted August 27, 2009 Share Posted August 27, 2009 how can i find out the adress of the webiste that refered me for example if it came from a google yahoo or aol search request? Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/ Share on other sites More sharing options...
bluebyyou Posted August 27, 2009 Share Posted August 27, 2009 $_SERVER['HTTP_REFERER'] it is not very reliable though Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/#findComment-907881 Share on other sites More sharing options...
shadiadiph Posted August 27, 2009 Author Share Posted August 27, 2009 tried that doesn't work though from google or yahoo Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/#findComment-907889 Share on other sites More sharing options...
mikesta707 Posted August 27, 2009 Share Posted August 27, 2009 I think a referrer needs to have linked to your website. Or is that what you're talking about (as in a link from a search?) Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/#findComment-907894 Share on other sites More sharing options...
shadiadiph Posted August 28, 2009 Author Share Posted August 28, 2009 i am on about when someone does a search from yahoo or google and they click on a link from their search page to mine. I know there is a way of geting this but just don't know what it is i know they have alot of $_SERVER commands on php.net but the one i am looking for is not listed. Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/#findComment-908115 Share on other sites More sharing options...
shadiadiph Posted August 28, 2009 Author Share Posted August 28, 2009 ok i found it and seems to work with google ok so i am going to assume it will work with others. $requestedfrom = getenv("HTTP_REFERER"); Quote Link to comment https://forums.phpfreaks.com/topic/172187-solved-gettting-the-referring-website/#findComment-908119 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.