website_games/test1.php

16 lines
244 B
PHP
Raw Normal View History

<?php
require_once('query.php');
$server = new Query('localhost', 25555);
//or new Query('some.minecraftserver.com', $port, $timeout);
if ($server->connect()){
$info = $server->get_info();
print_r($info);
}
else{
echo "Server Down";
}
?>