Re: calling executable C code from PHP
| From: | Henrik Hansen | Date: | Sun, 07 Oct 2001 21:42:13 +0000 |
| Subject: | Re: calling executable C code from PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70302@lists.php.net to get a copy of this message | ||
michael.mcgettrick@nuigalway.ie (Michael Mc Gettrick) wrote:
> Hi - two quick questions
>
> 1. Can/how does one call executable C code (say a.out) from PHP script,
> if so how does one send the C code command line arguments etc. and
> feed output back to php script/web page.
$output = shell_exec("./a.out -l blah -o blah -k blah");
echo $output;
> 2. Is there AUTOMATIC conversion from C source code to PHP script?
hardly think so.
--
Henrik Hansen