Author Topic: Laanxcheck - php script to check Planeshift serverstatus  (Read 11022 times)

miLosh

  • Hydlaa Resident
  • *
  • Posts: 111
    • View Profile
    • The Community of Vaalnor
Laanxcheck - php script to check Planeshift serverstatus
« on: September 14, 2006, 01: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

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

have fun ;)

there is more to find than you can lose...

Quote from: Phinehas
Lishom and Jekkar won't rid themselves of me that easily...

Croconil

  • Hydlaa Notable
  • *
  • Posts: 642
  • <3 Peacer!
    • View Profile
    • Talk Box
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #1 on: September 14, 2006, 03:46:21 pm »
Thats a good useful little tool. Well done ^^

Karyuu

  • Forum Legend
  • *
  • Posts: 9341
    • View Profile
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #2 on: September 14, 2006, 03:50:34 pm »
Agreed :] Stickying due to coolness factor combined with usefulness.
Judge: Are you trying to show contempt for this court, Mr Smith?
Smith: No, My Lord. I am attempting to conceal it.

Thedrish

  • Hydlaa Resident
  • *
  • Posts: 107
    • View Profile
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #3 on: September 15, 2006, 03:58:56 am »
Great work!!

Thanks for sharing  :woot:
Thedrish Urthadar
Knights Commander of The Lost Knights

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #4 on: October 01, 2006, 05:41:26 pm »
* Induane hugs his webmaster proudly!

Siteri Kidachi

  • Hydlaa Notable
  • *
  • Posts: 542
    • View Profile
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #5 on: October 01, 2006, 06:32:39 pm »
That's neat. I saw a program once that did the same thing for the Mario Kart DS servers, which was also awesome.

Croconil

  • Hydlaa Notable
  • *
  • Posts: 642
  • <3 Peacer!
    • View Profile
    • Talk Box
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #6 on: October 01, 2006, 06:38:20 pm »
I think this is maybe be worth putting on the planeshift.it homepage, so that plaers can quickly and easily see the server status?

Zeplin

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
    • UTi Guild Web Site
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #7 on: July 21, 2007, 07:06:32 am »
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
« Last Edit: July 22, 2007, 02:05:10 am by Zeplin »

GARRIN Ravinwood

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #8 on: December 08, 2008, 10:24:45 am »
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.

Frois

  • Hydlaa Resident
  • *
  • Posts: 88
    • View Profile
Re: Laanxcheck - php script to check Planeshift serverstatus
« Reply #9 on: November 09, 2009, 07:46:12 pm »
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 :(

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org