Getting Referers

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
canad1an
Forum Newbie
Posts: 3
Joined: Mon Aug 21, 2006 5:55 pm

Getting Referers

Post by canad1an »

I need to get the referer of a page 2 times ago.

Here is a mental visual:


[{page1}] - user views a page
v
v
[{page2}] - user views another page
v
v
[{script}] - the script runs and I need to get the url for {page1}



I only know how to get the referer of page2, and not page1. Is it even possible to retrieve the url of page1 through php?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Nope, and certainly not reliable either.
canad1an
Forum Newbie
Posts: 3
Joined: Mon Aug 21, 2006 5:55 pm

Post by canad1an »

thanks for the fast reply. I'm attempting to make a myspace tracker and it's proving even more difficult since javascript isn't allowed... Silly myspace though, there's ways around that ;-)
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

You can follow people's page views if it's within your own site, we've discussed that before. If that's what you're after have a quick search.
canad1an
Forum Newbie
Posts: 3
Joined: Mon Aug 21, 2006 5:55 pm

Post by canad1an »

Nope, I'm attempting to create a third party script that runs on myspace via html/other means and will send enough data back to my servers for parsing. But that is proving difficult thus far. I have been able to get a referer. But the referer only contains data about my profile. You would have to know a little about myspace to understand what information I need, and how it's decrypted.
Post Reply