uncompressing gz string

From: Date: Fri, 24 Oct 2003 18:48:40 +0000
Subject: uncompressing gz string
Groups: php.general 
Request: Send a blank email to php-general+get-167477@lists.php.net to get a copy of this message
I don't understand why gzinflate and gzuncompress don't work? <?php $gz_content = file_get_contents('hello.txt.gz'); echo gzinflate($gz_content); // Warning: data error echo gzuncompress($gz_content); // Warning: data error ?> but if I make it from bash the content is there : cat hello.txt.gz | gunzip Hello!

« previous php.general (#167477) next »