C.F. Scheidecker Antunes wrote:
Hello all. I have a function that executes the unzip command.
..
What I want to do is to extract the value(s) after inflating, so that
I can check what was extracted from the zip.
You can do so with regular expresson but a more simple aproach may be to
use the spl
Hello all. I have a function that executes the unzip command.
function test_unzip($command) {
$stdout = shell_exec($command);
echo $stdout;
}
This is the content of $stdout after calling it with $command = "unzip
./email/test.zip";
Archive: ./email/test.zip
inflating: ./txt/test.t
2 matches
Mail list logo