[SOLVED] Code for resolving the page where the visitor went

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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

[SOLVED] Code for resolving the page where the visitor went

Post by Calimero »

When someone leaves my site, is there a way to find out where he/she went. And also if soomeone comes to my site, how can I find the refferer.

I need this code to implement into my page (on my website) rather then already written bulk package for all kinds of tracking.

Thanks ahead !!![/big_search]
Last edited by Calimero on Tue Oct 05, 2004 5:53 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you could process all external links on your pages through a processing script which stores where they are going to. As for getting the referrer, if it's available (which is not guaranteed) it'll be in $_SERVER['HTTP_REFERRER']
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

it's not REFERRER, REFERER as i know ?!?!? ;-)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

just don't bank on it existing.. is all I want to impress on Calimero
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post by launchcode »

feyd - I think mudkicker was implying you spelt it wrong, that's all :) It's one R, not two. Well.. I mean you spelt it right re: English, but that isn't what PHP/Apache calls it - ahhh.. you know what I mean damnit! :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yeah.. I always forget those pesky programmings in the back room misspelled it who know how long ago.. and can't change it now.. oops.
Post Reply