Re: zlib and fopen and stream_filter_append, prebuffer read errors help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 13, 2007 7:44 AM, Bob Sabiston <bob@xxxxxxxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux