I want a Php notification to pass to the exe a url, so that the exe will return a string to the php

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.