OK.. this works for me. You can edit it to say whatever you need..
PHP Code:
<?
// echo "Yes, I'm running<BR>\n";
$remote_site = join('', file("http://ultima.lightning.net/uo/index.html") );
preg_match_all(
"|<td>(.*)<a name=\"(.*)\">(.*):</a>(.*)</td>(.*)<td>(.*)<img src=\"(.*)\"(.*)</td>|Usi",
$remote_site, $matches);
// echo "begining loop<BR>\n";
for ($i=0; $i<count($matches[0]); $i++) {
$name = $matches[3][$i];
$image = $matches[7][$i];
// echo "|" . $name . "|" . $image . "|";
if (strstr($image,'grnball.gif')) {
// echo "the image is a green ball" . "|";
echo "$name is <font color='#00CC00'>online</font><BR>\n";
}
else {
// echo "the image is a red ball" . "|";
echo "$name is <font color='#FF0000'>offline</font><BR>\n";
}
} //END for
?>