Re: php exec()
| From: | Chris | Date: | Mon, 03 Nov 2008 04:33:15 +0000 |
| Subject: | Re: php exec() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282767@lists.php.net to get a copy of this message | ||
the output from the browser is the same and not the expecting version of the ipkg-cl. then i tried to echo exec('ifconfig'); the output is the same also.You need to do this: $output = array(); exec('/program/....', $output); for it to put the results of running the command into the $output array. Then you can print it: print_r($output); This is in the manual: http://au.php.net/manual/en/function.exec.php -- Postgresql & php tutorials http://www.designmagick.com/