$open = fsockopen("musictown.crazydesign.ro.im","8000");
if ($open) {
fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n");
$read = fread($open,4000);
$text = explode("content-type:text/html",$read);
$text = explode(",",$text[1]);
} else { $er="Connection Refused!"; }
?>
if ($text[1]==1) { $state = "OnLine"; } else { $state = "OffLine"; }
if ($er) { echo $er; exit; }
echo "
Ascultatori: $text[0] of $text[3] ($text[4] Unici)
Maxim ascultatori online: $text[2]
Stare server: $state
Se emite la: $text[5] Kbps
Melodie actuala: $text[6]
";?>