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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to