Reply to Re: Original file datestamp in uploads

Your name:

Reply:


Posted by Juan Jos Gutirrez de Quevedo Prez on 11/05/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация