Server Info on forum
#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


Messages In This Thread
Server Info on forum - by Pawel_Shark - 12.12.2008, 18:13
Re: Server Info on forum - by Redgie - 12.12.2008, 18:20
Re: Server Info on forum - by SPFoxy - 12.12.2008, 18:21
Re: Server Info on forum - by Pawel_Shark - 12.12.2008, 18:31
Re: Server Info on forum - by Pawel_Shark - 12.12.2008, 18:33

Forum Jump:


Users browsing this thread: 5 Guest(s)