Posts: 39
Threads: 11
Joined: Apr 2008
Reputation:
0
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
Posts: 206
Threads: 9
Joined: Aug 2007
Reputation:
0
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.
Posts: 180
Threads: 5
Joined: Sep 2008
Reputation:
0
u mean onto ur server forums?
Posts: 39
Threads: 11
Joined: Apr 2008
Reputation:
0
I want to put the server status on the forum, that it gets the ip and shows Online/Offline and nuumber of players playing
Posts: 39
Threads: 11
Joined: Apr 2008
Reputation:
0
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);
}
?>