Skip to content
Advertisement

Tag: phpwebsocket

PHP socket_read waits for data to read

I’m new to socket stuff, here is my piece of code: client read method is just: Nothing will be executed after $status = $this->client->read(), untill socket_read() reads new data. I would like to stop socket_read() acting like waiting for data to read or call socket_read() only when there is any data to read. I couldn’t get any idea, how to

Multiple Socket Connection Using PHP

I have made a socket connection using php which is working perfectly below is the code for single socket but not working with multiple connections only accepts one connection at a time error_reporting(…

Advertisement