It's very difficult to explain, but I will give it a try.
AT FIRST:
-You have to upload call.api.
-You also have to upload playlist.php.
-And also cache.api.
HOW I'VE EDITED MY CODING IN PLAYLIST.PHP
<?php
// All settings now in
call_api.php, download from
http://forum.radionomy.com/// Script by Jamie Welch (techlover)
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="style-playlist.css" type="text/css" />
</head>
<body><tr><td><div id="playlist">
<div style="text-align: top; vertical-align: top; line-height: 220%; background-image: url(); border-right-style: dashed; border-right-color: #ffffff; border-right-width: 0px; color: #333333; font-size: 16px; font-family: Arial; padding-left:8px; padding-right:8px; margin-top:2px;"><?php
$xml = @simplexml_load_file("
http://fillinwhereyouvestoredyourowncallapi.com/call_api.php");
if($xml){
echo '<table>';
foreach ($xml->track as $value){
print "
<tr><td><td valign=top><b>".$value->artists."
</b> - ";
print $value->title."
</td></tr>";
}
echo '</table>';
}
else{
echo 'Error with the call_api.php!';
}
?>
</div>
</div>
</div>
<script>
//refresh time is in "minutes:seconds"
var timer="0:15"
if (document.images){
var CoffeeParse=timer.split(":")
CoffeeParse=CoffeeParse[0]*60+CoffeeParse[1]*1
}
function refreshtime(){
if (!document.images)
return
if (CoffeeParse==1)
window.location.reload()
else{
CoffeeParse-=1
currentminutes=Math.floor(CoffeeParse/60)
currentsec=CoffeeParse%60
if (currentminutes!=0)
currenttime=currentminutes+" minuten en "+currentsec+" seconden tot de volgende verversing!"
else
currenttime=currentsec+" seconden tot de volgende verversing!"
window.status=currenttime
setTimeout("refreshtime()",5000)
}
}
window.onload=refreshtime
//-->
</script>
</body>
</html>
==================================================================================================
HOW I'VE EDITED MY CODING IN CALL.API
<?php
// Votre RadioUID
$radiouid = "
FILLINYOUROWNRADIOUID";
// Votre APIKey
$apikey = "
FILLINYOUROWNAPIKEY";
// Include Cover Art?
$cover = "yes"; // "yes" or "no"
// Number of results to obtain
$amount = "
25";
// Type of result you would like to recieve
$type = "xml"; // "xml" or "string"
/* --------------------------------- */
/* #### ! DO NOT MODIFY! ! #### */
/* --------------------------------- */
$cache = './
cache_api.txt';
$expire = time() - 310;
if(@file_exists($cache) && @filemtime($cache) > $expire){ echo file_get_contents($cache);}
else{
$context = stream_context_create(array('http' => array('timeout' => 30)));
touch($cache);
$xml = @file_get_contents('http://api.radionomy.com/tracklist.cfm?radiouid='.$radiouid.''.(isset($apikey) ? '&apikey='.$apikey : '').(isset($amount) ? '&amount='.$amount : '').(isset($cover) ? '&cover='.$cover : '').(isset($type) ? '&type='.$type : ''),0, $context);
if($xml)
@file_put_contents($cache, $xml);
echo file_get_contents($cache);
}
?>