I want a Php notification to pass to the exe a url, so that the exe will return a string to the php process after the computation.
When the customer browses the webpage, enter a url. I use ajax to notify the exe url, and then return a corresponding string to the webpage that the customer is browsing.
The customer confirms this string on the webpage.
I don't know how to use Php to notify the exe string.
How can I use exe to return information to php.
Note: The web server is linux, that is, the exe and web server are not a host.
Reply to discussion (solution)
Exe and web server are not a host
Therefore, the machine where the exe is located should have a web server, and the exe should work in cgi mode.
Access by file, curl, or sock
If it is on the same machine, the system function can be called (pay attention to permissions)
Exe can only output data to the standard, otherwise php cannot receive
Exe and web server are not a host
Therefore, the machine where the exe is located should have a web server, and the exe should work in cgi mode.
Access by file, curl, or sock
If it is on the same machine, the system function can be called (pay attention to permissions)
Exe can only output data to the standard, otherwise php cannot receive
Why is there a web server on the machine where the exe is located. I don't understand.
Because the service is not used, you cannot access files on one machine.