After searching for some, I found that .z files are files compressed with the program compress. If your php installation allows shell_exec, and unix / linux is running on your web server, you can run the program uncompresson your server. This is an (untested) idea:
<?php
$file = '/tmp/archive.z';
shell_exec("uncompress $file");
source
share