note 125111 added to ziparchive.open
| From: | FredJohnson@php.net | Date: | Fri, 12 Jun 2020 03:24:51 +0000 |
| Subject: | note 125111 added to ziparchive.open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214757@lists.php.net to get a copy of this message | ||
Note that ZipArchive does not support generating streaming ZIP file content (i.e. start sending data
to the user as soon as you start generating it such as from a database). This means you have to
write the entire file to disk first and then send the file to the user. Doing that can take a while
depending on how much data there is, which could run up against server timeout limits.
There are a couple of PHP userland libraries available on GitHub that can stream ZIP file content
out to the user as soon as any data is written to the relevant classes.
cubiclesoft/php-zipstreamwriter
maennchen/ZipStream-PHP
Maybe a future version of ZipArchive will offer something similar.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 67.1.169.148)
----
Manual Page -- http://php.net/manual/en/ziparchive.open.php
Edit -- https://master.php.net/note/edit/125111
Del: integrated -- https://master.php.net/note/delete/125111/integrated
Del: useless -- https://master.php.net/note/delete/125111/useless
Del: bad code -- https://master.php.net/note/delete/125111/bad+code
Del: spam -- https://master.php.net/note/delete/125111/spam
Del: non-english -- https://master.php.net/note/delete/125111/non-english
Del: in docs -- https://master.php.net/note/delete/125111/in+docs
Del: other reasons-- https://master.php.net/note/delete/125111
Reject -- https://master.php.net/note/reject/125111
Search -- https://master.php.net/manage/user-notes.php