[PHP] Extracting string from shell_exec call

2004-07-28 Thread C.F. Scheidecker Antunes
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:

Re: [PHP] Extracting string from shell_exec call

2004-07-28 Thread raditha dissanayake
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