Reply to Re: Original file datestamp in uploads

Your name:

Reply:


Posted by Daniele Baroncelli on 10/20/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

[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

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