[PHP]Server Status Page

Joined
Oct 18, 2005
Messages
181
Reaction score
0
Hi, I'm looking for server status page.
I want to make a page where going to be server status + definition.
I have about 35 servers.

example:
server1 - online
lag - low
server2 - online
lag - low
server3 - offline
lag - low
server4 - online
lag - high

something like that. If someone have any ideas, please write them here.

edit:
0-500 people - low lag
500 - 2000 - medium
2000 - 20000 - high lag


Thanx, Gashek.
 
how do you know how many there are players online in particular server? is there any xml feed or something?

for server status use this: (when I was total php noob I asked and ppl from RZ kindly helped me :))

PHP:
<?php
$IP = array(
"test1:" => "localhost:80",
"test2:" => "192.168.0.31:80",
);

while(list($ServerName,$Host)=each($IP))
{
	list($IPAddress,$Port)=explode(":",$Host);
	if($fp = @fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,5))
	{
		fclose($fp);
		echo "$ServerName @$IPAddress:$Port is Online<br>";
	}
	else
	{
		echo "$ServerName @$IPAddress:$Port is Offline<br>";
	}
}
?>
 
yea really nice maked i got questions guys ...... i wanna make a website of coders
just whit script website code's ect. can u guys me whit it ?
 
passie said:
yea really nice maked i got questions guys ...... i wanna make a website of coders
just whit script website code's ect. can u guys me whit it ?

lol... o rly?:wiggle:
 
Wow, took you a long time to edit then o.O after two days we had our news working, and now we are giving it for free to the guys who officialy made the game, go to http://faf.staronesw.com/ and check their affiliates (Special Purpose Force) that's my build of faf :D upgraded to 3.0 with three servers.

You can download the game code from staronesw.
 
Back