I have an exec command that is behaving differently than the same command given to linux through Penguinet.
$res = exec(\'cd /mnt/mydirectory/; zcat log_fil
try this:
exec('cd /mnt/mydirectory/; zcat log_file.gz', $res); print_r($res);