53x11.com



Warhammer Online Server Status 0.1

Sunday, September 14th, 2008 @ 5:17 PM - code

» Download Warhammer Online Server Status 0.1 (.zip 1kb)

Latest Version Released on September 14th, 2008

Licensed under BSD, Copyright © 2012

WAR Server Status

WAAAGH! Wot be me Server Status? Here be em' PHP script fer parsing dem nasty status pages.

This script will parse Mythic's Warhammer Online server status page and output a text status to your Guild's website.

During peak hours, Mythic's server status page may not be available. This script solves that problem by caching the data and only checking for updates at definable intervals.

This was made very quickly for the WAR community to have access to this information. Later features to be added will be akin to my WoW Server Status Script.

  1. To include the script from within a PHP file, use include_once(); and war_ss(); to invoke the function. The war_ss(); function accepts only a single variable, $server. For example:

    <?php
    
    include_once('war_ss.php');
    $status = war_ss('Ironclaw');
    echo 'Ironclaw Server is '. ucfirst($status);
    
    ?>
    

    Once you include the script, you can invoke the war_ss(); function as many times as you like.

  2. You can also call this script by-itself for a simple "offline" or "online" response.

Version History

0.1 (08/09/13) - Simple PHP function with caching

Comments

Venerblade says
Wednesday, September 17th, 2008 @ 9:59 AM

I get the error:

Warning: fopen(war_ss.cache) [function.fopen]: failed to open stream: Permission denied in /test/war-server-status-01/war_ss.php on line 41

Warning: fwrite(): supplied argument is not a valid stream resource in /test/war-server-status-01/war_ss.php on line 42

Warning: fclose(): supplied argument is not a valid stream resource in /test/war-server-status-01/war_ss.php on line 43

Nick says
Wednesday, September 17th, 2008 @ 3:45 PM

Setting the permissions of the folder containing the script to 0755 should fix this issue. The script is trying to write its cache file. A future update will alleviate this problem.

Jubei says
Friday, September 19th, 2008 @ 5:12 AM

is there a way to modify the script so that we can have the red/green image as the active state and format the text with css?

James says
Tuesday, September 23rd, 2008 @ 3:47 AM

Any sort of timeline on this project?

Andrew says
Tuesday, September 23rd, 2008 @ 9:47 PM

Many thanks for this. You seem to be the only person that I can find who offers this. Any chance of sending me an email when you update this?

Jason says
Wednesday, October 8th, 2008 @ 9:42 AM

I guess I am not getting it. I am using Joomla. Uploaded the war_ss.php to my root (as well as others), then use Jumi or Mod PHP to include php into module position.

So far the only thing I got was "Ironfist Server Is" which is what I put in as the echo (from your example above).

What do I need to do here??

Ketah says
Thursday, October 23rd, 2008 @ 7:55 PM

Hi and thanks for the code it works great ! Just to know is it possible to modify this script to get the data from EU server (GOA) ? I have look at the european website and found nothing like the server status page or herald.

Disstress says
Tuesday, March 3rd, 2009 @ 6:50 PM

Any plans to continue working on this? Like making it look more like your WoW script?

Candy says
Tuesday, July 14th, 2009 @ 1:42 PM

I can confirm this works with the EU status page. The relevant page is

http://realmwar.war-europe.com/realmwar/ServerStatus.war

Thanks for the base code. :)

Add Comment