Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $itunes = json_decode(get("https://itunes.apple.com/us/rss/topsongs/limit=100/json"),true);
- if($itunes[feed][entry]) {
- foreach ($itunes[feed][entry] as $itune) {
- $title = $itune[title][label];
- $artist = $itune['im:artist'][label];
- $image = $itune['im:image'][0];
- $image = $image[label];
- echo "<div class='file'><table width='100%' cellspacing='0px'><tbody><tr valign='middle'><td width='5%' align='center'>
- <img class='thumb' src='$image' alt='$title' width='60px' height='45px'/></td><td width='50%'><h4>$title .mp3</h4><h5>Artist : $artist </h5><a href='/track/".links($title).".html' title='$title' class='f'><strong>+ Download MP3</strong></a></td></tr></table></div>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement