<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <meta http-equiv="refresh" content="10" /> <?PHP $data = file_get_contents('http://11.11.111.11:8000/status.xsl'); /// IP и Порт Сервера 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); } ?> <div style="font:Verdana, sans-serif; font-size:16px; text-decoration:none;" > <font color="#8e8e8e"> <? echo "Now play:"; ?> </font> <font color="##000000"> <? echo antara ($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); ?> </font> </div>
<a href="http://vk.com/gsearch.php?section=audio&q=<? echo antara ($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); ?>" target="blank">Search vk.com</a>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <meta http-equiv="refresh" content="10" /> <?PHP $data = file_get_contents('http://IP:PORT/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); } ?> <div style="font:Verdana, sans-serif; font-size:16px; text-decoration:none;" > <font color="#8e8e8e"> <? echo "Now play:"; ?> </font> <font color="#000000"> <a href="http://vk.com/gsearch.php?section=audio&q=<? echo antara ($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); ?>" target="blank"><? echo antara ($data, "Current Song:</td>\n<td class=\"streamdata\">","</td>"); ?></a> </font> </div>