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 <[EMAIL PROTECTED]> 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

Reply via email to