Currently I am using:
exec("zcat $filename", $output)
To uncompress a .Z
type file but unfortunately my hosting company has now disabled this function.
Is there a workaround?
$pathtofile = "filename.lis.Z";
exec("zcat $pathtofile", $output);
.Z files are LZW compression. If you can't run shell commands on your host, you can use an LZW PHP library. Here are two:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With