Created
May 7, 2014 07:59
-
-
Save ranisalt/707882552245f9ec2058 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
if ($server->execute()) { | |
echo 'Players online: ', $server->players['online'], '<br />', | |
'Server location: ', $server->serverinfo['location'], '<br />', | |
'Client version: ', $server->serverinfo['client'] , '<br />'; | |
//apenas alguns exemplos de dados | |
} else { | |
echo 'Server offline'; | |
//se execute() returnar false, o servidor esta offline | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment