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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux