<?php
$handle = fopen("serverstatus/fdsstatus.txt","r");
while (!feof($handle)) {
$line = fgets($handle, 1024);
$write = explode(",", $line);
$color = array("green", "green", "yellow", "yellow", "red", "red", "green", "green", "green" );
$i = 0;
echo "<span style=\"color: $color[$i++]\">". $write['0'] ."</span><br>";
echo "<span style=\"color: $color[$i++]\">". $write['1'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['2'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['3'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['4'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['5'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['6'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['7'] ."</span>";
echo "<span style=\"color: $color[$i++]\">". $write['8'] ."</span>";
}
fclose ($handle);
?>
http://www.eh-server.com/list.php does not runing ... some idea
[Updated on: Sun, 23 March 2008 15:04]
Report message to a moderator