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

25 lines
516 B
PHP

<?php
require __DIR__ . '/lib/MinecraftPing.php';
require __DIR__ . '/lib/MinecraftPingException.php';
use xPaw\MinecraftPing;
use xPaw\MinecraftPingException;
try
{
$Query = new MinecraftPing( 'localhost', 25555 );
print_r( $Query->Query() );
}
catch( MinecraftPingException $e )
{
echo $e->getMessage();
}
finally
{
if( $Query )
{
$Query->Close();
}
}
?>