$v1['ip'] = $url;
.
why isn´t the following working ?
$sock = @stream_socket_client('tcp://'.$v1['ip'].':25565'. $errno, $errstr, 1);
but this:
$sock = @stream_socket_client('tcp://'.$v1['ip'].':25565'. $errno, $errstr);
and this:
$sock = @stream_socket_client('tcp://'.$url.':'.$port, $errno, $errstr, 1);
what is the default timeout ?