note 82108 added to function.gzwrite
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 27 Mar 2008 20:34:41 +0000 |
| Subject: | note 82108 added to function.gzwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137643@lists.php.net to get a copy of this message | ||
katzlbtjunk's method is certainly shorter, but it is unusable for anything except small files.
It would try to load the whole file into memory, then create an entire compressed copy, and only
then write it to disk. The other method given below will not exhaust memory like that.
----
Server IP: 209.41.74.194
Probable Submitter: 68.32.92.23
----
Manual Page -- http://www.php.net/manual/en/function.gzwrite.php
Edit -- https://master.php.net/note/edit/82108
Del: integrated -- https://master.php.net/note/delete/82108/integrated
Del: useless -- https://master.php.net/note/delete/82108/useless
Del: bad code -- https://master.php.net/note/delete/82108/bad+code
Del: spam -- https://master.php.net/note/delete/82108/spam
Del: non-english -- https://master.php.net/note/delete/82108/non-english
Del: in docs -- https://master.php.net/note/delete/82108/in+docs
Del: other reasons-- https://master.php.net/note/delete/82108
Reject -- https://master.php.net/note/reject/82108
Search -- https://master.php.net/manage/user-notes.php