以上是已有的status.php<?PHP
error_reporting(0);
$my_serv_name="";
$my_ip="218.253.42.97";$IP = array("" => "$my_ip:3724"
);
$online= "<font color=green><B>ONLINE <img src='user_online.gif'></B></font>";
$offline = "<font color=red><B>OFFLINE <img src='user_offline.gif'></B></font>";
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo("<TR><TD>".$ServerName."</TD><TD>");
if($fp=fsockopen($IPAddress, 3724, $ERROR_NO, $ERROR_STR,(float)0.5)) {
echo("
<table border='0' cellpadding='0' cellspacing='0' width='165' height='50'>
<tr height='50'>
<td width='165' height='50' background='themes/warcraft/files/status.gif'><img src='themes/warcraft/files/space.gif' width='16' height='14' border='0'>Server: $online</td>
</tr>
</table>
");
fclose($fp);}
else
echo ("
<table border='0' cellpadding='0' cellspacing='0' width='165' height='50'>
<tr height='50'>
<td width='165' height='50' background='themes/warcraft/files/status.gif'><img src='themes/warcraft/files/space.gif' width='16' height='14' border='0'>Server: $offline</font></td>
</tr>
</table>
");
}
?>
謝

