RE: [PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Boyd, Todd M.
> -Original Message- > From: Bastien Helders [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2008 4:26 AM > To: php-general@lists.php.net > Subject: [PHP]Keep the modification date of a file when archiving it. > > > Hi, > > When I'm archiving f

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

2008-10-23 Thread Kyle Terry
Before changing the file, use the filemtime() function to get the mod date, then use touch() to set the date after you change the file. On Thu, Oct 23, 2008 at 2:25 AM, Bastien Helders <[EMAIL PROTECTED]>wrote: > > Hi

[PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Bastien Helders
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