PlaneShift
Support => Server Status => Topic started 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 ;)
-
Thats a good useful little tool. Well done ^^
-
Agreed :] Stickying due to coolness factor combined with usefulness.
-
Great work!!
Thanks for sharing :woot:
-
/me hugs his webmaster proudly!
-
That's neat. I saw a program once that did the same thing for the Mario Kart DS servers, which was also awesome.
-
I think this is maybe be worth putting on the planeshift.it homepage, so that plaers can quickly and easily see the server status?
-
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...
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
-
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.
-
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 :(
-
http://laanx.fragnetics.com/