Re: php exec()
| From: | Stut | Date: | Mon, 03 Nov 2008 09:39:13 +0000 |
| Subject: | Re: php exec() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282785@lists.php.net to get a copy of this message | ||
On 3 Nov 2008, at 08:06, cheesiong wrote:
i tried you suggestion, with <?php exec('ipkg-cl --version >lalala.txt');?> the lalala.txt was created but the file is empty. anymore suggestion?Try... <?php exec('ipkg-cl --version 2>&1');?> It's not uncommon for CLI utilities to output their banner on stderr so it doesn't get included when the output is piped elsewhere. -Stut -- http://stut.net/