I've tried searching for this but no luck, please let me know if you've seen this posted before.
I want to let some other sites use my images. (http://example.com/ sample.jpg) and keep track of each time they use the image. So I write track.php to save the request into a DB, then return the image requested from a URL parameter (http://example.com/track.php? returnimage=sample.php) Now any of these external sites can use my image in their HTML <img src="http://example.com/track.php? returnimage=sample.php"> and I get my tracking. Works great. Now I want to also keep track of which URL or domain has requested an image. I thought I could use $_SERVER['HTTP_REFERER'] in track.php to see what URL it is coming from, although no luck. It doesn't look like any of the server/environment variables will return domain info I am looking for from this external site. I would like to hold off on adding an addition parameter to the request (http://example.com/ track.php?returnimage=sample.php&externalsite=example.com) Any ideas/possible? I really appreciate any help. Thank you very much! -Dustin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
