Anonymous
public text v1 · immutabletest = '0';
while ($test <= 30) {
while (socket_select($r = array($sock), $w = array($sock), $f = array($sock), 5) == 1) {
$out = socket_read($sock, 2048);
echo "$out <br>";
$out = trim($out);
$out1 = explode(":", $out);
echo "$out1[0] $out1[1] $out1[2]";
}
sleep(1);
$test++;
}