note 93107 added to function.gzuncompress

From: Date: Mon, 24 Aug 2009 02:07:31 +0000
Subject: note 93107 added to function.gzuncompress
Groups: php.notes 
Request: Send a blank email to php-notes+get-159819@lists.php.net to get a copy of this message
One way to uncompress zlib-compressed data that is in a file without first reading in the file and then gzuncompressing it (maybe you have memory problems doing it that way) is to compile the zpipe.c program from zlib ( http://www.zlib.net/zpipe.c )... on linux, etc: # gcc -lz -o zpipe zpipe.c # cp zpipe /usr/local/bin Then do this <?php $uncompressed = shell_exec("cat $compressed_file | zpipe -d"); ?> ---- Server IP: 208.69.120.35 Probable Submitter: 72.174.41.7 ---- Manual Page -- http://www.php.net/manual/en/function.gzuncompress.php Edit -- https://master.php.net/note/edit/93107 Del: integrated -- https://master.php.net/note/delete/93107/integrated Del: useless -- https://master.php.net/note/delete/93107/useless Del: bad code -- https://master.php.net/note/delete/93107/bad+code Del: spam -- https://master.php.net/note/delete/93107/spam Del: non-english -- https://master.php.net/note/delete/93107/non-english Del: in docs -- https://master.php.net/note/delete/93107/in+docs Del: other reasons-- https://master.php.net/note/delete/93107 Reject -- https://master.php.net/note/reject/93107 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159819) next »