我在下面使用 fsockopen:
$socket = fsockopen("uberminecraft.com", 25565, $errno, $errstr, 1);
return ($errno === 0);
现在,如果服务器启动与否,这应该返回 false 或 true。我知道这台服务器很稳定,但我仍然不断收到错误
Warning: fsockopen() [function.fsockopen]: unable to connect to uberminecraft.com:25565 (Connection timed out)