Login/Game doesnt work yet :( prhaps if i show you my other phps you can think of something. The script you was helping with is stats.php
Here are the others:
status.php
<?php
$server = "address";
$portg = "7777";
$portl = "2106";
$timeout = "1";
?>
status2.php
<?php include "config/status.php" ?>
<?php
//if ($server && $port && $timeout) {
$game = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $portl, $errno, $errstr, $timeout);
//}
if($login) {
echo "<font size=3><b>Login Server: <font color=#00DF00>Online</font></b></font><br />";
}
else {
echo "<font size=3><b>Login Server: <font color=#FF0000>Offline</font></b></font><br />";
}
if($game) {
echo "<font size=3><b>Game Server: <font color=#00DF00>Online</font></b></font><br />";
}
else {
echo "<font size=3><b>Game Server: <font color=#FF0000>Offline</font></b></font><br />";
}
echo "";
?>