-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 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?
www.php.net/touch
bool touch ( string $filename [, int $time [, int $atime ]] )
Attempts to set the access and modification times of the file named in
the filename parameter to the value given in time . Note that the access
time is always modified, regardless of the number of parameters.
If the file does not exist, it will be created.
--
So... I would say just call that on your file after you
ZipArchive::close it.
HTH,
Todd Boyd
Web Programmer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php