After searching some i've found that .z files are files that were compressed using the compress
program. If your php installation allows shell_exec
and your webserver is running unix/linux you could run the uncompress
program on your server. This is the (untested) idea: