I need to support several sockets that I opened with PHP, and check them regularly. I am new to sockets in PHP; I opened sockets as follows:
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_connect($socket, $ip, $port);
Some sockets may fall into a state in which they do not return messages; these sockets only accept messages. How do I know if a socket is open if the socket does not respond to the message?
php sockets
John r
source share