Re: php exec()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux