PHP Socket Programming - Listenning and Answering
I need a program written with PHP such that,
It listens a linux PORT, handles the connections (multiple connection) and writes to each socket (one of, 4 of or all of them with respect to options)
Also, max. connection support should be added.
- Several users can connect to port and post data.
- The PHP TCP-Server will be accept, and sends to this data to some of clients, or all.
- Týmeout should be supported for clients.
Sorry, but I tried to write it. however, I could not finished for multiple connections. I need it as soon as possible.
Waiting for your complete running scripts (I could not find in the Internet for multiple connection handling!, only simple codes avaliable...)