How to integrate PHP and C program
Let me put my problem in a simple way. I have written a C program, which i will keep in my server. Now i am developing a
website using PHP, so that other users can also have access to my stand alone C program.
So here i want my PHP to take input from users and bring that input and run my C program and then again take the results of
the C program back to the users using PHP(probably using the same website itself).
Please suggest me how to do it. It would be easier for me to understand if you can tell me using simple program.
For example my C program has a function that adds two numbers. The users can provide their input (the numbers) using my
website. Then PHP will somehow interact with C function and return the results to the user.