@Jarrod1937Nov 01.2010 — #Sorry, i won't write code for you, but i can explain the general process. Essentially you can grab their ip via:
$ip_address = getenv("REMOTE_ADDR");
There are more robust functions out there to grab the ip if you find you need it. If you're saving the image name to a database table, you can simply create a separate field right after it and store the ip in it.