|
Posted by Daniele Baroncelli on 10/03/27 11:41
> from my point of view you have 3 options:
> 1. ask for the date in a separate field
> 2. ask the people uploading to use a fixed format for the files
> (i.e. if someone took a photo on 2/2/2006 ask them to rename the file
> to 20060202.jpeg or something like that)
> 3. if you just want it for photos you could look the exif headers that
> most digital cameras place on the photos they take. apart from the date
> you will get camera make & model, orientation of the file,etc...(some
> cameras only fill some fields, but I think the date of the photo
> should be on most photos taken)
> in php this is acomplished using the exif extension, specifically the
> exif_read_data function
> (http://php.net/manual/en/function.exif-read-data.php).
Thanks a lot!
I didn't know about the Exif class!
I am going to use that one!
Otherwise, I had figured out how to use the ActiveX FileSystemObject in
Javascript:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.GetFile(filespec);
var filedate = new Date(f.DateCreated)
Thanks!
Daniele
Navigation:
[Reply to this message]
|