I want to write a topsites script that allows users to place a graphic on their page, and every time the image is loaded by a unique user, a hit counter in my db increments. I know it's imperfect, but I'd like to consider each unique IP a unique user. However, I can't think of a single way to log an IP address when an image on another site is loaded. I think javascript could do this better, but I've only tinkered with it and don't want to learn another language right now. Any ideas how to do this in PHP? I specifically need to know how to communicate an IP address to myself when an image is loaded.
TIA
Steph