note 80954 added to function.gzread
| From: | utku at osu1 dot php dot net | Date: | Fri, 08 Feb 2008 09:31:58 +0000 |
| Subject: | note 80954 added to function.gzread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135894@lists.php.net to get a copy of this message | ||
I don't think it would be wise to open a whole gzip file (it _is_ compressed for a reason, and
likely to be a very big file) into a single string. You would most likely hit the php memory limits.
Instead, if you need to process the file, put your gzread calls in a loop, and read incrementally by
a setting $length to a constant value.
----
Server IP: 208.69.120.35
Probable Submitter: 85.97.128.179
----
Manual Page -- http://www.php.net/manual/en/function.gzread.php
Edit -- https://master.php.net/note/edit/80954
Del: integrated -- https://master.php.net/note/delete/80954/integrated
Del: useless -- https://master.php.net/note/delete/80954/useless
Del: bad code -- https://master.php.net/note/delete/80954/bad+code
Del: spam -- https://master.php.net/note/delete/80954/spam
Del: non-english -- https://master.php.net/note/delete/80954/non-english
Del: in docs -- https://master.php.net/note/delete/80954/in+docs
Del: other reasons-- https://master.php.net/note/delete/80954
Reject -- https://master.php.net/note/reject/80954
Search -- https://master.php.net/manage/user-notes.php