I am trying to uncompress some tar.gz compressed files. I used the following code:
Code: Select all
<?php
$output = shell_exec('tar zxvf news.tar.gz');
echo "<pre>$output</pre>";
?>Can some one help to sortout this problem. Is there a way to uncompress tar.gz files by using php script?
Thanks
Nadeem