1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| PHP:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$url=file_get_contents('url');
$pos=strpos($url,'Current Song:</td><td class="streamdata">',0);
//for($i=$pos;$i<$pos+41;$i++) echo $url[$i];
$end=0;
$i=0;
while($end===0)
{
echo $url[$pos+41+$i];
if($url[$pos+41+$i+1]==='<')
{
$end=1;
}
else $i++;
}
?>
<meta http-equiv="refresh" content="1; URL=testradio2.0.php"> |
Partager