Server online script

http://forum.ragezone.com/priston-tale-dev/server-files-resources-161626.html

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

bb
 
lol dont worry, its just a script that creates a link to your server that informs anyone looking at what the script produces if the server is online or offline..

for example.. something like this

server: Online
or
server: Offline

with it being php, i would assume its an add to the web page package
 
Back