Re: zlib and fopen and stream_filter_append, prebuffer read errors help
| From: | Bob Sabiston | Date: | Fri, 14 Dec 2007 15:45:34 +0000 |
| Subject: | Re: zlib and fopen and stream_filter_append, prebuffer read errors help | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265875@lists.php.net to get a copy of this message | ||
That isn't going to work. Gzip is used for entire files. Do you understand what I'm trying to do, or am I misunderstanding you?
Bob
On Dec 13, 2007, at 11:13 PM, Casey wrote:
On Dec 13, 2007 7:44 AM, Bob Sabiston <bob@flatblackfilms.com> wrote:On Dec 12, 2007, at 7:20 PM, Casey wrote:Zlib compression is what's used in Gzip. Just try it ;) $uncompressed = gzuncompress(file_get_contents("binaryfile.ext")); -CaseyTry gzuncompress();Correct me if I'm wrong, but isn't gzuncompress used for 'gzip' files? Although they both use the same compression, gzip is specific to files and has header information not present in straight zlib data. And as I've mentioned, this is a normal file, not compressed -- I'm just trying to read and decompress pieces of data within the file, which according to the documentation is something zlib does. I assume that most people use these functions for entire files, but surely someone has used it the other way as well? Thanks for any info. Bob