Capturing output of shell script.
| From: | Charles Williams | Date: | Fri, 29 Jun 2001 20:36:19 +0000 |
| Subject: | Capturing output of shell script. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55605@lists.php.net to get a copy of this message | ||
Hello all,
I have an .sh shell script being executed from a php4 call. I need to
capture the string return and work with that in the php script. The only
problem is that the call works but I cannot get the returned string. I've
tried using exec, passthru, ``, system, and escapeshellcommand. Nothing
seems to work. any ideas?
thanks.
chuck