No ho guardato, ma è Shoutcast, no?
Comunque, usavo quello script qua per fare la stessa cosa tanti anni fa. Funzionava sempre, se no guarda se ci sono dei problemi in genere di connettersi (firewall, etc).
Codice PHP:
<?
$host = "";
$port = "";
$status='0';
$song='';
$fp=fsockopen($host, $port, $errno, $errstr, 10);
if ($fp)
{
fwrite($fp, "GET /7 HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while ($line=fgets($fp))
{
if (chop($line)!='') continue;
$line=fgetss($fp,1024);
list($current,$status,$peak,$max,$unique,$bitrate,$song) = explode(",", $line);
}
fclose($fp);
}
$im = ImageCreate(250, 50);
$back = ImageColorAllocate($im, 58, 110, 165);
$text = ImageColorAllocate($im, 255, 255, 255);
imagefill($im, 0, 0, $back);
imagestring($im, 5, 50, 1, "", $text);
imagestring($im, 1, 5, 22, 'Status: '.($status=='1'?'Online':'Offline'), $text);
if ($status=='1') imagestring($im, 1, 5, 34, "Current Song: ".$song, $text);
Header("Content-Type: image/jpeg");
ImageJPEG($im);
ImageDestroy($im);
?>