19

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 this one.Is this possible?

Daniel Daranas
  • 22,082
  • 9
  • 61
  • 111

4 Answers4

7

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

chaos
  • 119,149
  • 33
  • 300
  • 308
4

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

Bob Fanger
  • 26,854
  • 7
  • 59
  • 75
2

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

jonstjohn
  • 58,242
  • 8
  • 42
  • 55
1

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

n3rd
  • 5,839
  • 4
  • 37
  • 56