Call C program from PHP:
exec(command,[array for output],[array for return status]);
Executes the command and saves output to an
array
OR...
passthru(command,[array for return status]);
Executes the command and displays the raw output
Not sure about how to call PHP script from C.