Hi,
I want to untar(unzip) my file uploaded on web server by PHP shell command.
Can you please let me where i my code have problem ?
//////////////////////////////////////////////////////
<?php
$mstrng = shell_exec('cd /local/home/phptrack.com/myfiles/;tar -tzvf myfile.tar.gz;');
echo $mstrng;
?>
//////////////////////////////////////////////////////
After executing the above code i get the output but does not see untar (unzip) files.
Regards,
Aamir Javid (PHP Web Developer)
Web : http://phptrack.com