Код: Выделить всё
<?php$handle = fopen("http://www.myradio24.com:9000/status2.xsl?mount=/8050", "rb");$contents = '';while (!feof($handle)) {$contents .= fread($handle, 8192);}fclose($handle);$mas=explode(",",$contents);$dj=$mas[15];$dj = str_replace ("~", " ICQ: ", $dj);$text = $mas[16];if ($text =='' and $dj==''){ /////////////////////////////////////Non stop/////////$handle = fopen("http://myradio24.com:9000/status.xsl?mount=/8050autodj", "rb");$contents = '';while (!feof($handle)) {$contents .= fread($handle, 8192);}fclose($handle);//$str = $contents;$mas=explode(",",$contents);$text = $mas[16];$dj='Non Stop';}$string = $text;//echo 'Ведущий: '.$dj;//echo "<br>";echo ' '.$string; ?>
Еще дал ету вот ссылку http://myradio24.com/informer.php?port=8050&get=1
И код:
Код: Выделить всё
$a=explode("|",file_get_contents("http://myradio24.com/informer.php?port=8050&get=1");echo $a[10];
Кто сможет помоч? Вот кстате что выводит http://pro100.in.ua/radio2/ch23.php