Can I get the date a picture was taken from $FILES array?
Posted on 2006-04-01
I am working on an image file upload script that attempts to read the date the image was taken from the uploaded file array.
I found the 'filemdate' function on php.net and attempted to use it with the following results:
With filemdate($_FILES['ImgFile'][tmp_name]) this just returns the current date (I'm guessing because it was modified when uploaded to the temp dir).
With filemdate($_FILES['ImgFile'][name] I get: 'Warning: filemtime(): Stat failed for 100_0436.jpg (errno=2 - No such file or directory)'.
Can anyone help?