<?php $data = file_get_contents("http://ипадрес:8000/status.xsl"); function antara($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $Current_song = antara($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); $replace = array ( 'à' => 'а', 'á' => 'б', 'â' => 'в', 'ã' => 'г', 'ä' => 'д', 'å' => 'е', '¸' => 'ё', 'æ' => 'ж', 'ç' => 'з', 'è' => 'и', 'é' => 'й', 'ê' => 'к', 'ë' => 'л', 'ì' => 'м', 'í' => 'н', 'î' => 'о', 'ï' => 'п', 'ð' => 'р', 'ñ' => 'с', 'ò' => 'т', 'ó' => 'у', 'ô' => 'ф', 'õ' => 'х', 'ö' => 'ц', '÷' => 'ч', 'ø' => 'ш', 'ù' => 'щ', 'ú' => 'ъ', 'û' => 'ы', 'ü' => 'ь', 'ý' => 'э', 'þ' => 'ю', 'ÿ' => 'я', 'À' => 'А', 'Á' => 'Б', 'Â' => 'В', 'Ã' => 'Г', 'Ä' => 'Д', 'Å' => 'Е', 'Æ' => 'Ж', 'Ç' => 'З', 'È' => 'И', 'É' => 'Й', 'Ê' => 'К', 'Ë' => 'Л', 'Ì' => 'М', 'Í' => 'Н', 'Î' => 'О', 'Ï' => 'П', 'Ð' => 'Р', 'Ñ' => 'С', 'Ò' => 'Т', 'Ó' => 'У', 'Ô' => 'Ф', 'Õ' => 'Х', 'Ö' => 'Ц', '×' => 'Ч', 'Ø' => 'Ш', 'Ù' => 'Щ', 'Ú' => 'Ъ', 'Û' => 'Ы', 'Ü' => 'Ь', 'Ý' => 'Э', 'Þ' => 'Ю', 'ß' => 'Я', '¨' => 'Ё', 'à' => 'а', 'á' => 'б', 'â' => 'в', 'ã' => 'г', 'ä' => 'д', 'å' => 'е', '¸' => 'ё', 'æ' => 'ж', 'ç' => 'з', 'è' => 'и', 'é' => 'й', 'ê' => 'к', 'ë' => 'л', 'ì' => 'м', 'í' => 'н', 'î' => 'о', 'ï' => 'п', 'ð' => 'р', 'ñ' => 'с', 'ò' => 'т', 'ó' => 'у', 'ô' => 'ф', 'õ' => 'х', 'ö' => 'ц', '÷' => 'ч', 'ø' => 'ш', 'ù' => 'щ', 'ú' => 'ъ', 'û' => 'ы', 'ü' => 'ь', 'ý' => 'э', 'þ' => 'ю', 'ÿ' => 'я', 'À' => 'А', 'Á' => 'Б', 'Â' => 'В', 'Ã' => 'Г', 'Ä' => 'Д', 'Å' => 'Е', '¨' => 'Ё', 'Æ' => 'Ж', 'Ç' => 'З', 'È' => 'И', 'É' => 'Й', 'Ê' => 'К', 'Ë' => 'Л', 'Ì' => 'М', 'Í' => 'Н', 'Î' => 'О', 'Ï' => 'П', 'Ð' => 'Р', 'Ñ' => 'С', 'Ò' => 'Т', 'Ó' => 'У', 'Ô' => 'Ф', 'Õ' => 'Х', 'Ö' => 'Ц', '×' => 'Ч', 'Ø' => 'Ш', 'Ù' => 'Щ', 'Ú' => 'Ъ', 'Û' => 'Ы', 'Ü' => 'Ь', 'Ý' => 'Э', 'Þ' => 'Ю', 'ß' => 'Я', ); echo strtr($Current_song,$replace); ?>