A PHP script that, when put on a website, allows to display the complete server information, server and module description, and a list of players online. All done in PHP. And YES, it allows you to query an arbitrary server over the network, just like the NWN client does. Have a look at http://avlis.blackdagger.com (serverstatus) for a demonstration that queries two NWN servers. ** Update V1.1: 1) improved handling of servers not responding 2) improved parsing of playerlist ** Update V1.2: improved handling of servers not responding, again
I have tried it but keep getting offline and confirmed that the server is online. the IP I am trying to use is 68.8.78.213:5121 for Midreach Starfire
Posted by SQiRL at 2002-11-1122:12:00
anybody got any tweaks to make a better html display? im ok in html, but not a very creative guru. any links or suggestions would be appreciated.
Posted by Klous at 2002-10-3108:34:00
You probably should mention that this php script absolutly requires the server to be setup Gamespy Enabled=1 If Gamespy Enabled=0 your script returns that the server is down.
Posted by Joe at 2002-10-2615:39:00
It seems that even though it states that "25" players(for example) are ingame correctly it will only list the first 16.
Posted by Triskele at 2002-10-2606:12:00
Mc Cain, I own multiple servers at a large ISP, I will host the script for you for free instead of you having to go find another place for your webpage.
Posted by Papillon at 2002-10-2215:54:00
Unfortunately, the server doesn't send it's update in the response packets. The "queryid" comes close to that (that is a counter that gets increment by one every time a client queries the server), but I don't think it's really helpful...
Posted by Ghost at 2002-10-1110:27:00
Great PHP Script, Love it! I was wondering (if even possible) To include the amount of time the server has been running for. (on the server window it is displayed in the bar on top) Just a thought. Thanks again for sharing this!
Posted by Papillon at 2002-09-1212:23:00
I think you did nothing wrong, but the webserver where your homepage is located doesn't support PHP scripts. That's why you're getting the file itself and not the server info it should generate. Solution: Move your webpage to a provider that supports PHP (every sensible provider should do that) or find someone who is willing to host the script for you and then link to his page...
Posted by Dazeal at 2002-09-1209:21:00
Simply awesome! Thanks so much! Dazeal
Posted by Papillon at 2002-09-1205:58:00
I've posted a new version that corrects some problems when the queried server is down (V1.1). It'll be downloadable as soon as the description contains the "Update" description, I guess...