note 70153 deleted from function.ziparchive-addfile by pajoye
| From: | pajoye@php.net | Date: | Tue, 17 Oct 2006 12:23:28 +0000 |
| Subject: | note 70153 deleted from function.ziparchive-addfile by pajoye | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118609@lists.php.net to get a copy of this message | ||
Note Submitter: don't at reply dot to dot me
----
documentation example has an extra parenthesis on the third line. the example should read:
<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
$zip->addFile('/path/to/index.txt', 'newname.txt');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>