15.12.2012, 12:04
This is what I get by using it.
connect()) { // If a successful connection has been made
print_r($query->getInfo()); // Print server info array
print_r($query->getBasicPlayers()); // Print basic players array, connection will time out if the player counter is above 100 and will return an empty array if no players are online
$query->close(); // Close the connection
} else {
echo "Server did not respond!";
}
?>
Then I tried another one I found in replies and got this:
http://prototype-gaming.tk/server-status/ (The first one)
connect()) { // If a successful connection has been made
print_r($query->getInfo()); // Print server info array
print_r($query->getBasicPlayers()); // Print basic players array, connection will time out if the player counter is above 100 and will return an empty array if no players are online
$query->close(); // Close the connection
} else {
echo "Server did not respond!";
}
?>
Then I tried another one I found in replies and got this:
http://prototype-gaming.tk/server-status/ (The first one)