Очень часто в FAQ и других инструкциях попадаются РНР скрипты. Но я без понятия что с ними делать. Куда вписываются эти скрипты?
**********
PHP scripts are generally the most reliable and quickest way to get stats from your server. If you just get Connection Refused, then click here
Display song title
This will get the song title from your server and display it on your website.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "s31.myradiostream.com:53994/2.html");
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$data = curl_exec($ch);
curl_close($ch);
$data = str_replace('</body></html>', "", $data);
$split = explode(',', $data);
if (empty($split[6])) {
$title = "The current song is not available ";
} else {
$count = count($split);
$i = "6";
while($i<=$count) {
if ($i > 6) {
$title .= "," . $split[$i];
} else {
$title .= $split[$i];
}
$i++;
}
}
$title = substr($title, 0, -1);
echo $title;
?>