Page 1 of 1

PHP Counter Trouble

Posted: Tue May 11, 2004 12:05 pm
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

Posted: Tue May 11, 2004 4:12 pm
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.