douling0053
2014-04-07 15:58
浏览 473
已采纳

PHP从执行二进制文件获取输出

I'm trying to figure out if it is possible to do the following using php:

I have a website that uses php to display database information. Now, I'd like to be able to implement another capability and that is I'd like to write a new php web page and launch a thread which executes a binary and have the output be displayed on the web page live (if possible).

I think I need to use ajax to be able to refresh the page in order to show "live output" in the page.

The problem I'm having is figuring out if I can launch a thread that executes a binary and display the output on the webpage. Is that possible? If so, how?

图片转代码服务由CSDN问答提供 功能建议

我正在试图弄清楚是否可以使用php执行以下操作:</ p>

我有一个使用php显示数据库信息的网站。 现在, 我希望能够实现另一个功能,那就是我想编写一个新的php网页并启动一个执行二进制文件的线程并将输出显示在网页上(如果可能的话) )。</ p>

我想我需要使用ajax才能刷新页面以便在页面中显示“实时输出”。
</ p> \ n

我遇到的问题是弄清楚我是否可以启动执行二进制文件的线程并在网页上显示输出。 那可能吗? 如果是这样,怎么样?
</ p> </ div>

2条回答 默认 最新

相关推荐 更多相似问题