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!

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

Reply via email to