Re: php exec()

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

 



cheesiong wrote:
hi Chris,
i change the script to:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$output = array();
exec('ipkg-cl --version', $output);

print_r($output);
?>

the output from browser:
array()

other stuff remain the same. can i conclude php program is not a problem here?

It could be a path problem still even though you put it in /usr/bin/

try a full path (recommended anyway):

exec('/usr/bin/ipkg-cl --version', $output);

--
Postgresql & php tutorials
http://www.designmagick.com/


--
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