【问题标题】:How one process can wait for input from another in PHP?一个进程如何在 PHP 中等待另一个进程的输入?
【发布时间】:2013-05-25 23:51:47
【问题描述】:

我正在使用 proc_open 运行另一个进程,然后在 while 循环中我不想发送一些数据(使用管道)到打开的进程并接收它的输出。我该怎么做?

【问题讨论】:

    标签: php input process wait


    【解决方案1】:

    您可以使用streams 创建或连接到套接字,然后在套接字上进行选择。或Semaphore 功能

    【讨论】:

      猜你喜欢
      • 2016-03-18
      • 2016-09-09
      • 2020-09-21
      • 1970-01-01
      • 1970-01-01
      • 2012-07-02
      • 2014-05-31
      • 1970-01-01
      • 2021-03-28
      相关资源
      最近更新 更多