View Single Post
Old 10-27-2008, 09:36 AM   #10
Junior Member
artoros began at the beginning.
Posts: 6
Karma: 10
Join Date: Oct 2008
Device: none
Originally Posted by pilotbob View Post
What is the error? You should be able to pass a second parameter to the exec() function to get the results from the command line.

No error, nothing. Besides a 255 as return value - whatever that means.
Here, that is the test code:

$toexe = "C:\\calibre\\html2lrf.exe -t test -a test -o C:\\documents\\155.lrf C:\\documents\\155.htm";

$output = array();

exec($toexe, &$output, &$num);

echo nl2br(print_r($output,true))."<br />".$num;?>

And the output:



$output is totally empty.

The funny thing: When I mispell the command name, let's say "html3lrf.exe" then I don't get any output either, but $num changes from 255 to 1.

Any ideas left? :-)
artoros is offline   Reply With Quote