note 101606 added to function.ziparchive-close
| From: | johnfactorial at osu1 dot php dot net | Date: | Wed, 29 Dec 2010 20:58:31 +0000 |
| Subject: | note 101606 added to function.ziparchive-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175318@lists.php.net to get a copy of this message | ||
If you're adding multiple files to a zip and your $zip->close() call is returning FALSE,
ensure that all the files you added actually exist. Apparently $zip->addFile() returns TRUE even
if the file doesn't actually exist. It's a good idea to check each file with file_exists()
or is_readable() before calling $zip->addFile() on it.
----
Server IP: 208.69.120.55
Probable Submitter: 64.238.108.50
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-close.php
Edit -- https://master.php.net/note/edit/101606
Del: integrated -- https://master.php.net/note/delete/101606/integrated
Del: useless -- https://master.php.net/note/delete/101606/useless
Del: bad code -- https://master.php.net/note/delete/101606/bad+code
Del: spam -- https://master.php.net/note/delete/101606/spam
Del: non-english -- https://master.php.net/note/delete/101606/non-english
Del: in docs -- https://master.php.net/note/delete/101606/in+docs
Del: other reasons-- https://master.php.net/note/delete/101606
Reject -- https://master.php.net/note/reject/101606
Search -- https://master.php.net/manage/user-notes.php