Hi!
I'm trying to decompress a .tar file using PHP exec() or system(), but it's not working. Using system() function I get a list of all files inside the .tar file, no error messages, no permission messages and no decompressed files. 🙁
This is the code.
if ($decompress = system ("/bin/tar -xvf public/$file_name ")){
print " The following file has been decompressed: $arquivo_name";}
else{
print " It was not possible to decompress the file";}
Can anybody please help me?