Re: php exec()

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

 




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/


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