Server Info on forum
#1

hi do you know how to put server info on forum what i mean is players ?/? Online/Offline. How can i put that ?? on a forum that it will refresh and you will se the numer of players
Reply
#2

You could either store the information in a file which you then interpret with your webserver, or just use a game monitor statistics bar. There is another way, but I'm no expert on reading server info externally so I'll let someone else talk about that side of it.
Reply
#3

u mean onto ur server forums?
Reply
#4

I want to put the server status on the forum, that it gets the ip and shows Online/Offline and nuumber of players playing
Reply
#5

i think this would work for the Online/Offline but what about Number of players ?

<?
$ip = "ipaddress";
$port = "port";
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo '<B><FONT COLOR=red>Offline</b></FONT>';
else{
echo '<B><FONT COLOR=lime>Online</b></FONT>';
fclose($sock);
}
?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)