Created
May 7, 2014 08:00
-
-
Save ranisalt/3e5ba3d69f209866819e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('otinfo.php'); | |
$server = new Otinfo('shadowcores.twifysoft.net'); | |
if ($server->execute()) { | |
echo 'Players online: ', $server->players['online'], '<br />', | |
'Server location: ', $server->serverinfo['location'], '<br />', | |
'Client version: ', $server->serverinfo['client'] , '<br />'; | |
} else { | |
echo 'Server offline'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment