hi,
i am runnning a php script where i try to decompress a file and the untar it.
the file in suppose x.tar.gz. so in my php script i call system command
system("gunzip /home/trial/x.tar.gz");
now to untar i use
system("tar xvf /home/trial/x.tar");
now the error creeps in. i am able to decompress the file i.e in /home/trial/x.tar is formed but when i try to untar it the result in shown in the webpage(running the php script) instead of untaring it in the /home/trial folder).
can anyone help?