Page 1 of 1

how get domain name?

Posted: Mon Oct 23, 2006 8:10 am
by kreoton
hi, i have one silly question how get domain name of site were is plased my sites banner. Banner is generated by php and users includes its like this:

Code: Select all

<img src="http://mysite.com/image.php" />
in image.php i whant to log how many visits has sites with my banner, i tried to use $_SERVER['HTTP_REFERER'] but with no luck

Posted: Tue Oct 24, 2006 4:53 pm
by feyd
If that information is not voluntarily sent by the browser making the request, you have no easy way of finding out. This is why most many image links are given out with a uniquely identifiable mark.