website_games/test1.php
Brendan Golden 98aaf7333e initial commit
Signed-off-by: Brendan Golden <git@brendan.ie>
2023-10-01 02:36:07 +01:00

15 lines
244 B
PHP

<?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";
}
?>