connect(SERVER_ADDR, SERVER_PORT, TIMEOUT); } catch(ServerQueryException $ex) { $exception = $ex; } // Display script runtime in milliseconds $timer = number_format((microtime(true) - $timer) * 1000, 0, '.', ''); // To display runtime in seconds instead, uncomment next line and comment line 19 //$timer = number_format((microtime(true) - $timer), 2, '.', ''); ?>

getMessage()); ?>

getServerInfo()) !== false): ?> $infoValue): ?>
Server Info (queried in ms)
" . htmlspecialchars($infoKey) . ""; ?> "; print_r($infoValue); echo ""; } else { echo htmlspecialchars($infoValue); } ?>
No data received.
getPlayerList()) !== false): ?>
Players Online
There is no one online.