RE: [PHP] obtain IP from other site ( or domain name)

From: Date: Wed, 07 Mar 2001 03:51:09 +0000
Subject: RE: [PHP] obtain IP from other site ( or domain name)
Groups: php.general 
Request: Send a blank email to php-general+get-42848@lists.php.net to get a copy of this message
> I have exchange link business program with other sites, > basically I give a hyper link to come to our store to them > and when user click on the link on their site to come to us, > they will genrate income from it too. > The question is that how do I know that when a user click on > the link to come to my site that a user come from the link > from their site , or from their IP or something. So that I > can tell where a user come from. > Is this something to do with http header? You can look at $HTTP_REFERER, but its not reliable. Better to tell them to use linking code that specifically has a parameter in it that your receiving PHP script can pick up. Instead of http://www.yoursite.com/ give them that with ?linkid=X so you could track clickthroughs. Jason

« previous php.general (#42848) next »