Re: Tricky question - referrer from ousite, or from intern?
| From: | Justin French | Date: | Tue, 27 Aug 2002 08:31:06 +0000 |
| Subject: | Re: Tricky question - referrer from ousite, or from intern? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114229@lists.php.net to get a copy of this message | ||
$_SERVER['HTTP_REFERRER'] (or is it $_ENV['HTTP_REFERRER']?) is your only
option. Unfortunately it's not guaranteed to be set by the browser, so your
current method of accepting and tracking referrers is flawed, sorry.
A page.php?aid=xxxxx entry point, combined with sessions or cookies to keep
track of the affiliate ID is a proven method of making things work.
Justin French
on 27/08/02 6:25 PM, Andy (news.letters@gmx.de) wrote:
> 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?