What on earth is wrong with it?
<?
Header("content-type: application/x-javascript");
$chatnames = file('http://client11.addonchat.com/scwho.pl?id=292747&plain=1');
$indx = count($chatnames);
$indxcom = $indx - 1;
if ($indx == 0){
echo "document.write(\"No one is in the chat room at the
moment"\)";
}
else{
echo "document.write(\"<b>Members Chatting:</b>"\)";
for($i = 0; $i < $indx; $i++) {
$name = explode(' ', $chatnames[$i], 2);
echo "document.write(\"$name[0]"\)";
if ($i < $indxcom) {
echo "document.write(\","\)";
}
}
}
?>
<script type="text/javascript" src="http://h1.ripway.com/Inny/chat.php"></script>