note 104051 added to function.ziparchive-close
| From: | m021 at springtimesoftware dot com | Date: | Thu, 19 May 2011 20:14:38 +0000 |
| Subject: | note 104051 added to function.ziparchive-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179888@lists.php.net to get a copy of this message | ||
If you have created a zip file and added a file to it without error, yet the ZipArchive::close call
fails (with ER_TMPOPEN: "Failure to create temporary file") and the zip file is not
created, check to see if your ZipArchive::open call specifies a pathname containing nonexisting
directories. If you expect a containing hierarchy of one or more directories, you must create them
yourself before using using ZipArchive. You can write a simple function to recurse using dirname to
find each parent directory, creating those that don't exist by using mkdir when leaving the
recursion.
----
Server IP: 192.41.42.26
Probable Submitter: 74.65.139.79
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-close.php
Edit -- https://master.php.net/note/edit/104051
Del: integrated -- https://master.php.net/note/delete/104051/integrated
Del: useless -- https://master.php.net/note/delete/104051/useless
Del: bad code -- https://master.php.net/note/delete/104051/bad+code
Del: spam -- https://master.php.net/note/delete/104051/spam
Del: non-english -- https://master.php.net/note/delete/104051/non-english
Del: in docs -- https://master.php.net/note/delete/104051/in+docs
Del: other reasons-- https://master.php.net/note/delete/104051
Reject -- https://master.php.net/note/reject/104051
Search -- https://master.php.net/manage/user-notes.php