Script top song

ID di isi dgn:
id=topsongs (Top Songs)
id=topalbums (Top Albums)
id=topmusicvideos (Top Music Videos)
id=newreleases (New Releases)
id=justadded (Just Added)
id=Featured Albums (Featured Albums)

<?php
$itunes = json_decode(file_get_contents('http://170.130.18.37/itunes?id='.$_REQUEST['id']), true);
       if ( $itunes != null ) {          
       foreach ($itunes as $i) {
echo '<img src="'.$i['image'].'" width="40" height="40" alt="'.$i['name'].'"/> <a title="'.$i['name'].'" href="search?q='.urlencode($i['artist']).'+'.urlencode($i['name']).'">'.$i['artist'].' - '.$i['name'].'</a><br/>
By: <a title="'.$i['title'].'" href="search?q='.urlencode($i['artist']).'">'.$i['artist'].'</a><br/>';
   }
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *