PHP Counter Trouble

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
THESiUS
Forum Newbie
Posts: 6
Joined: Wed Mar 17, 2004 2:53 am

PHP Counter Trouble

Post by THESiUS »

On Website A. I have a php script that dynamicly creates an image and logs stats like referrer, date time and so on. On Website B. in my HTML I am doing this <img src="http://websitea.com/stats.php">. So it loads the image from Website A.. But now I have a problem... It is getting all the stats from the website the code is hosted on. And not the page I am calling the code from. Is there anyway to do this?

Thanks, THESiUS
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

since referrer isn't required for a browser to send, I'd place the referral information (either encoded in some fashion, or outright) into the link as a query parameter.
Post Reply