Re: system() Question

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

 



On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan <rjo@xxxxxxxxx> wrote:

> Hello all,
>
> I am using system to convert some files using a binary in linux.  My code
> looks like this:
>     $response = system('gpsbabel -p "" -r -t -i gpx -f "test.gpx" -o kml -F
> "test2.kml"', $retval);
>     echo "<p>Response: ", $response, "</p><p>Return Value: ", $retval;
>
> The $retval is returning code 127 - Any ideas on why this?<http://www.php.net/unsub.php>


you might try shell_exec() instead to see if you can get any more mileage.
the return value of shell_exec() is the output of the executed command.

-nathan

[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