Interprocess communication within PHP with a continuous process?

前端 未结 4 480
清酒与你
清酒与你 2021-01-04 00:04

I have a question about interprocess communication within PHP. What I want is to have one process to be continuously running, and to have other processes communicate with th

相关标签:
4条回答
  • 2021-01-04 00:09

    A very useful and popular interprocess communication mechanism is known as Sockets. PHP's support for it is just fine.

    0 讨论(0)
  • 2021-01-04 00:13

    I can also recommend Sockets, but using the stream functions like stream_socket_server() etc.

    Because these are more programmer-friendly than the "raw" socket functions

    0 讨论(0)
  • 2021-01-04 00:17

    Depending on what exactly your needs are, you might wanna take a look at something lile ActiveMQ

    0 讨论(0)
  • 2021-01-04 00:20

    Take a look at proc_open. I have not used it extensively, but you should be able to accomplish this using this function.

    0 讨论(0)
提交回复
热议问题