Basicly.. If the radio server is LIVE i want it to display whos playing... which is done by $text
<?
$open = fsockopen(" IP "," PORT ");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,1000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
</div>
<?
if ($text[1]==1) { $state = "LIVE"; } else { $state = "Offline"; }
if ($er) { echo $er; exit; }
echo "<font face=verdana size=1>
Server Status: <b>$state</b><br>
Now Playing: $text[6]
</font>";?>