How to get referrer site with image on another site.

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
Gelembjuk
Forum Newbie
Posts: 1
Joined: Sat Jan 12, 2008 2:41 am

How to get referrer site with image on another site.

Post by Gelembjuk »

Hello.
I have created easy counter system to make site rating on my site.
I have small logo image that is used as my site button on another sites. The image is hosted on my server and <img> tag is inserted into code of another sites.
Image is not real image. It is drown with php script. And it is possible to drow in image count of hosts and hits.

But i want to havemore statistics for every site. I want to get referring sites for every site in rating.
Is it possible with just image on external site?
I tried to check $_SERVER['HTTP_REFERRER'] but it contains the page where image is placed but no previous page URL.

How to do this?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Re: How to get referrer site with image on another site.

Post by feyd »

This isn't a subject of General Discussion. Topic moved.
Post Reply