Let me pose my problem in a simple way. I wrote a C program that I save on my server. Now I am developing a site using PHP so that other users can also access my standalone C program.
So, here I want my PHP to accept data from users and make this input and run my C program, and then accept the results again, the C program returns to users using PHP (possibly using the same site).
Please suggest me how to do this. It would be easier for me to understand if you can tell me using a simple program. For example, my C program has a function that adds two numbers. Users can provide their input (numbers) using my Website. Then, PHP somehow interacts with the C function and returns the results to the user.
source share