Thanx for your answer. This is exactly the problem. I do not want to pass something like this.
The user gets a URL like: server.com/user-name He passses it around and someone follows this link to my site. In case this person registeres I am tracking this. But the same links are inside my own site. The URL should stay the same since it is a nice one with the username and without any ?=... stuff. I could reduce my question to the following: How can I find out (in PHP) that someone is comming from a different site. Some variable like $_HTTP[referrer] might track this. I hope there is something like this :-) So I could do something like this: if ($_HTTP[referrer] != myserver.com){ //set a cookie } You get the idea? Andy "Hugh Danaher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000c01c24d97$4c9f3d60$0100007f@localhost">news:000c01c24d97$4c9f3d60$0100007f@localhost... > IFF they just left one of your other sites, then you should be able to pass > a variable in the other site's header such as: > > php.net/function-name?variable=from_somewhere_I_own > > if the variable isn't set, then they came from a site you don't own. > > or you could send them to a unique function-name where you can then record a > hit on that function-name. > <?php > function unique_name() > { > $hit="came from my other site"; > pseudo code -- store $hit; > function run_me(you really want to run) > } > ?> > ----- Original Message ----- > From: "Andy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 26, 2002 10:58 PM > Subject: [PHP] Tricky question - referrer from ousite, or from intern? > > > > Hi there, > > > > I have a tricky problem which I honestly think is not possible to solve. > > However maybe I am wrong. > > > > As you all know it is possible on php.net to pass a function name just > > behind the adress (e.G. php.net/function-name) this will redirct to the > > propper page. I did the same thing with member sites (e.G > > server.com/member-name) Now I am starting a referrer programm. Every > member > > who follows a link like from anywhere on the net and registeres will be > > tracked and the referrer gets a point. Now I did forget that I do have > > several of this links on my site itself :-) Which means that they have > been > > aquired on my site by accident :-) > > > > My question is how can I make sure that they do come from outside and are > > not surfing my site already. I do set a coockie as soon as someone enteres > > this adress, but it would be fantastic if I could do a if statement on > > something to make sure he does not come from my own site. I would like to > > keep all the links like that, just to find a way to track the origin of > the > > user. > > > > Thank you so much for any idea on this tricky task, > > > > Andy > > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php