小弟我要Php通知传给exe一个url,让exe去运算之后返回一个字符串给php

WBOY
Release: 2016-06-13 12:27:15
Original
890 people have browsed it

我要Php通知传给exe一个url,让exe去运算之后返回一个字符串给php

流程
客户浏览网页的时候输入一个url,我利用ajax通知给exe这个url,然后返回一个对应的字符串给客户正在浏览的网页。
客户在网页上确认这个字符串。

我现在不清楚怎么用Php通知给exe这个字符串。
exe回传信息给php又用什么方式较好呢。

注:web服务器为linux,也就是说exe和web服务器不是一台主机。
------解决思路----------------------
exe和web服务器不是一台主机
因此 exe 所在机器上应有 web 服务器,并且该 exe 应工作在 cgi 方式下
用 文件方式、curl、sock 都可进行访问

如果是在同一机器上,则可用 system 函数调用(注意权限)

exe 只能向 标准输出 输出数据,否则 php 不能接收到

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!