title: Can a PHP script detect if a socket has been closed?
body: <p>How can a PHP script detect if a socket has been <a href="http://us3.php.net/manual/en/function.socket-close.php" rel="nofollow noreferrer">closed</a> by the remote party?</p>