The following code allows only one client and not several at the same time. Is it possible to create something, leave multiple clients connected?
$socket = socket_create( AF_INET , SOCK_STREAM , SOL_TCP );
socket_bind( $socket , 'localhost' , '2000' );
socket_listen( $socket );
while ( true ) {
$client = socket_accept( $socket );
socket_write( $client , 'Aê! Seja bem-vindo!' );
}