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?
18
votes
4 Answers
7
votes
A very useful and popular interprocess communication mechanism is known as Sockets. PHP's support for it is just fine.
4
votes
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
2
votes
Take a look at proc_open. I have not used it extensively, but you should be able to accomplish this using this function.
1
votes