frost20 Posted June 8, 2009 Share Posted June 8, 2009 Hi people, Is there a php variable that tell you from where the user have come from ? I would like to get the URL he was to get on my site for example. Thanks Link to comment https://forums.phpfreaks.com/topic/161413-solved-how-do-you-know-from-where-user-come-from/ Share on other sites More sharing options...
MadTechie Posted June 8, 2009 Share Posted June 8, 2009 its called HTTP_REFERER but its set via the browser so isn't idea but it works! here some common stuff $referrer = $_SERVER['HTTP_REFERER']; $browser = $_SERVER['HTTP_USER_AGENT']; $ipAddress = $_SERVER['REMOTE_ADDR']; print "Referrer = " . $referrer . "<BR>"; print "Browser = " . $browser . "<BR>"; print "IP Adress = " . $ipAddress; Link to comment https://forums.phpfreaks.com/topic/161413-solved-how-do-you-know-from-where-user-come-from/#findComment-851803 Share on other sites More sharing options...
MadTechie Posted June 9, 2009 Share Posted June 9, 2009 Your welcome Link to comment https://forums.phpfreaks.com/topic/161413-solved-how-do-you-know-from-where-user-come-from/#findComment-852413 Share on other sites More sharing options...
frost20 Posted June 11, 2009 Author Share Posted June 11, 2009 Thanks Link to comment https://forums.phpfreaks.com/topic/161413-solved-how-do-you-know-from-where-user-come-from/#findComment-853482 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.