Re: zlib and fopen and stream_filter_append, prebuffer read errors help
| From: | Casey | Date: | Fri, 14 Dec 2007 05:13:17 +0000 |
| Subject: | Re: zlib and fopen and stream_filter_append, prebuffer read errors help | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265857@lists.php.net to get a copy of this message | ||
On Dec 13, 2007 7:44 AM, Bob Sabiston <bob@flatblackfilms.com> wrote:
>
> On Dec 12, 2007, at 7:20 PM, Casey wrote:
>
> > Try 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
>
>
Zlib compression is what's used in Gzip. Just try it ;)
$uncompressed = gzuncompress(file_get_contents("binaryfile.ext"));
-Casey