how to untar a file with tar.gz extension in php script. i have written a php script for uploading a tar.gz file amongst many files. i have to untar this file. how will the command be like?
till now what i have done is - consider for uploading i have given this path
$path="/usr/local/apache/htdocs/mydir".$_HTTP_POST_FILES[0];
since only thing i know is the $path and not the file name hence
$output=shell_exec("gunzip {$path}");( this command is succesful)
my question is now how to proceed after this?
thanks in advance