Referring URL ?

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
Death
Forum Newbie
Posts: 17
Joined: Tue Apr 19, 2005 11:52 am

Referring URL ?

Post by Death »

Hi guys,

When people link my site I have them link to MySite.com/incoming/ and just redirect to my main page.

Well, now I want to start counting those hits. I guess I should see where the hit is coming from then see if I have a database entry for it, does that sound about right ? How do I know where the hit came from ? I really don't want to use a link code for the guys linking me.

Any ideas would be appreciated.

Take care.
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

In your Cpanel you should be able to see where most people come from. I believe other browsers (firefox, opera) block that sort of stuff, so you wont get to see where everyone is coming from.

I have to go to Web/FTP Stats -> Referrers, hope this helps any.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Code: Select all

$_SERVER['HTTP_REFERER'];
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

d11wtq wrote:

Code: Select all

$_SERVER['HTTP_REFERER'];
Which is an optional header sent by the browser, do not count on its existance.
Post Reply