Do a

    var_dump($_SERVER);

in tracker.php and see what you can use ...

On Mon, Oct 5, 2009 at 5:21 PM, Dustin <[email protected]> wrote:

>
> 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 <http://example.com/%0Asample.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<http://example.com/track.php?%0Areturnimage=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<http://example.com/track.php?%0Areturnimage=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<http://example.com/%0Atrack.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to