HomeTom - CS
Saturday, July 2, 2011
Call a C program from php and read output
Use shell_exec() command
:
$output = shell_exec('/path/to/your/program'); // $output contains whatever program prints.
This is great. It makes possible writing C code for computation intensive part and pass result back to php.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment