I tried unzipping a file with extension .gz, but I get the following error.
Warning: gzuncompress(): data error
My code is very simple:
<?php
$filename = "file.gz";
$uncompressed = gzuncompress($filename);
echo $uncompressed;
?>
How can I solve that?
Thank you.