Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Server ON OFF script

Skilled Illusionist
Joined
Dec 30, 2005
Messages
309
Reaction score
2
PHP:
<?php

/*change your server's name and host*/
$server['name'] = "MyPT";
$server['host'] = "127.0.0.1";
$server['port'] = "10007";


/*no need to change the further code*/
$connection = @fsockopen($server['host'], $server['port'], $ERROR_NO, $ERROR_STR, (float)1.5);

echo "{$server['name']} PristonTale server is ";

if($connection)
{
    fclose($connection);
    echo "<font color=\"green\">online</font>";
}
else
{
    echo "<font color=\"red\">offline</font>";
}
?>
 
Back
Top