View Full Version : Server Info on forum
12/12/2008, 07:13 PM
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
12/12/2008, 07:20 PM
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.
12/12/2008, 07:21 PM
u mean onto ur server forums?
12/12/2008, 07:31 PM
I want to put the server status on the forum, that it gets the ip and shows Online/Offline and nuumber of players playing
12/12/2008, 07:33 PM
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>';
echo '<B><FONT COLOR=lime>Online</b></FONT>';
vBulletin® v3.8.6, Copyright ©2000-2014, Jelsoft Enterprises Ltd.