note 99693 deleted from function.ziparchive-addemptydir by danbrown
| From: | danbrown@php.net | Date: | Tue, 31 Aug 2010 14:57:47 +0000 |
| Subject: | note 99693 deleted from function.ziparchive-addemptydir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172201@lists.php.net to get a copy of this message | ||
Note Submitter: lilpeck at gmail dot com
----
A comment about Thomas' code, for Windows server users:
Original:
$zip->open('test.zip', ZipArchive::CREATE);
$dirName = 'test';
For Windows servers:
$zip->open('c:\writeablepath\where_to_save\archive.zip', ZipArchive::CREATE);
$dirName = 'c:\path\to\wwwroot\to\foldertozip';