Extracting tar.xz won't output file PHP

236 views Asked by At

I have a file called control.tar.xz. I'm trying to extract the file, but there is no output.

Heres my code:

shell_exec('cd ' . __DIR__ . ' && tar -xf control.tar.xz');

I'm checking for control and it's not showing.

What am I doing wrong?

0

There are 0 answers