I have a project in which there is a program written in C ++ (which should always run), and an Apache web server with PHP on a Windows PC. Now I want to send the parameters received from clients in PHP to a C ++ program and get an answer, but I cannot figure out how to do this.
I looked at exec () and shell_exec () in PHP, but they can only execute programs, I want to call a method in C ++ and send the return value back to PHP.
Is the best way to temporarily store the results in a file or do you have any ideas?
source
share