|
Posted by Juan Jos Gutirrez de Quevedo Prez on 11/18/17 11:41
El Fri, 3 Mar 2006 14:56:10 +0100
Daniele escribió:
> So, I suppose it must be a limitation of the HTTP protocol.
actually it's not a limitation, but a design decision
> Which is then the most feasible way to save the original file
> timestamp in the database of my CMS system?
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).
--
Juan José Gutiérrez de Quevedo
Director Técnico (juanjo@iteisa.com)
ITEISA (http://www.iteisa.com)
942544036 - 637447953
Navigation:
[Reply to this message]
|