Referrals

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DGW
Forum Newbie
Posts: 5
Joined: Mon Jul 21, 2003 2:06 pm

Referrals

Post by DGW »

I notice on some websites that they will have a list of Referrals. This list shows all the websites that directed the users to their page. So most are like google or yahoo.

I was wondering how I can do that for my webpage? Although I don't get as many hits, I just want to see out of curiousity.

thanks
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Re: Referrals

Post by TheBentinel.com »

The referrer (if one was provided) is available in $_SERVER['HTTP_REFERRER']
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

$_SERVER['HTTP_REFERRER'] should be $_SERVER['HTTP_REFERER'] only one r in the middle :) .

Mac
Post Reply