Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>USA Chart Music iTunes</title>
- <body>
- <h1>
- USA Chart Music iTunes
- </h1>
- <h3>
- Genre = POP</h3>
- <br>
- <a href="http://boomp3.us/chart/index.php">Home</a> | <a href="http://boomp3.us/chart/pop.php">POP</a> | <a href="http://boomp3.us/chart/rock.php">ROCK</a> | <a href="http://boomp3.us/chart/blues.php">BLUES</a> | dst
- <br><br>
- <?php
- $itunes_feed = "https://itunes.apple.com/us/rss/topsongs/limit=100/genre=14/xml";
- $itunes_feed = file_get_contents($itunes_feed);
- $itunes_feed = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $itunes_feed);
- $itunes_xml = new SimpleXMLElement($itunes_feed);
- $itunes_entry = $itunes_xml->entry;
- foreach($itunes_entry as $grab){
- echo $grab->title.'<br>';
- }
- ?>
- </head>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement