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,454
  • 9
  • 63
  • 116

4 Answers4

7

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

chaos
  • 122,029
  • 33
  • 303
  • 309
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
  • 28,949
  • 7
  • 62
  • 78
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
  • 59,650
  • 8
  • 43
  • 55
1

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

n3rd
  • 5,989
  • 4
  • 39
  • 56