PlaneShift

Support => Server Status => Topic started by: miLosh on September 14, 2006, 08:05:20 pm

Title: Laanxcheck - php script to check Planeshift serverstatus
Post by: miLosh on September 14, 2006, 08:05:20 pm
well, with the Planeshift server down i got bored and thought i might do some hacking. because i found it to be a nice eye-candy on our website, i wrote a little php script that checks periodically the laanx.fragnetics.com website for how many users are online and displays an icon accordingly. so if you like to see the status on your guild website too, fetch the script from here:
http://plexus.shacknet.nu/cov/laanx/laanxcheck.tar (http://plexus.shacknet.nu/cov/laanx/laanxcheck.tar)

needles to say you should read the README, the installation is very easy.

you can see on our guild website how it looks (in the upper right corner of the mainpage):
The Community of Vaalnor (http://plexus.shacknet.nu/cov/index.php)

have fun ;)
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Croconil on September 14, 2006, 10:46:21 pm
Thats a good useful little tool. Well done ^^
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Karyuu on September 14, 2006, 10:50:34 pm
Agreed :] Stickying due to coolness factor combined with usefulness.
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Thedrish on September 15, 2006, 10:58:56 am
Great work!!

Thanks for sharing  :woot:
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Induane on October 02, 2006, 12:41:26 am
/me hugs his webmaster proudly!
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Siteri Kidachi on October 02, 2006, 01:32:39 am
That's neat. I saw a program once that did the same thing for the Mario Kart DS servers, which was also awesome.
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Croconil on October 02, 2006, 01:38:20 am
I think this is maybe be worth putting on the planeshift.it homepage, so that plaers can quickly and easily see the server status?
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Zeplin on July 21, 2007, 02:06:32 pm
Just out of interest, Is that the preferred method? grabing most of the web page from the site,

Or, would doing a socket check, on the server itself be fine?

ie...
Code: [Select]
function method2 ()
{
$server = "udp://laanx.fragnetics.com";
$port = "7777";

$fp = fsockopen($server, $port, $errno, $errstr);
$result = fwrite($fp, "\n");
if ($result != FALSE) {
    echo "Connecting To The Server Reports - Online<p>\n";
return;
}
else {
    echo "Connecting To The Server Reports - Offline<p>\n";
}
fclose($fp);
}

method2();

I'd figure this would be a lot faster then grabbing the status page, but wondering if it could either
#1 have adverse effects, Or
#2 Violate the connection agreement.

*edit: Fixed code correctness
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: GARRIN Ravinwood on December 08, 2008, 04:24:45 pm
As for server static you or i can see that in less then 5 seconds after hitting the Launcher Icon.

<p> Insert Script here </p> does it have a Dial tone? or can it reach out and touch someone. 62 hours is a very long time to be lost.
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: Frois on November 10, 2009, 01:46:12 am
I deffinetly agree, the server's status should be put on the planeshift main page, or even better in the client itself, so we'd always know if the server is allright and we are the ones lagging or not. Which is a problem I constantly get :(
Title: Re: Laanxcheck - php script to check Planeshift serverstatus
Post by: weltall on November 10, 2009, 06:27:13 am
http://laanx.fragnetics.com/