Click to See Complete Forum and Search --> : Detect image update and display that time/date?


dryadsong
11-18-2004, 09:07 PM
I originally posted this in the wrong forum...so...here it is in the right place. Help me, php-gurus!

Here's my scenario. I'd like to be able to upload my webcam image (the name of which will always be webcam.jpg because I don't know enough php to have fancy coding to change that dynamically for any reason) and have the time and date that I last updated it printed under my little thumbnail picture. I've been searching google for information on how to do this, but I've found nothing.

Is there a way for a page to detect the time and date that an image was uploaded and then print that out in a specified format? I'm hosted on prohosted.net, and they seem to have all kinds of php and other things enabled and supported (god, I sound like a n00b -- I know html and css, I swear! It's just these newfangled languages that get me!) so if that helps anyone out with what type of code I can use, there you are.

If anyone can point me in the right direction, my eternal thanks.

jebster1ca
11-19-2004, 12:05 AM
filemtime() (http://www.php.net/filemtime) <-- To get the date/time the file was last modified
date() (http://www.php.net/date) <-- To format a date/time

:)