I haven’t done php for a long time now …
If I understand you well I would do that :
- Your html should send the request (http GET request) with the two numbers to your server (from your form).
- The triggered php script should use the shell_exec command from php to execute a c program.
- The program shall print the sum to the console (http://php.net/manual/en/function.shell-exec.php).
- Then the result string would be sent back to the webbrower
I hope I’m right.
2
solved How to Run C code in WebBrowser using PHP [closed]