Re: Keep the modification date of a file when archiving it.

From: Date: Thu, 23 Oct 2008 12:53:03 +0000
Subject: Re: Keep the modification date of a file when archiving it.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282353@lists.php.net to get a copy of this message
Before changing the file, use the filemtime() <http://us3.php.net/filemtime>function to get the mod date, then use touch() <http://us3.php.net/manual/en/function.touch.php> to set the date after you change the file. On Thu, Oct 23, 2008 at 2:25 AM, Bastien Helders <eldros_kandar@hotmail.com>wrote: > > Hi, > > When I'm archiving files in a ZIP file, using the class ZipArchive, the > modification date is modified to when ZipArchive::close is called. I would > like to keep the original modification date. Is that even possible? > > Best Regards, > Bastien Helders > > _________________________________________________________________ > Téléphonez gratuitement à tous vos proches avec Windows Live Messenger ! > Téléchargez-le maintenant ! > http://www.windowslive.fr/messenger/1.asp -- Kyle Terry | www.kyleterry.com

« previous php.general (#282353) next »