Music News
‘http://www.bravewords.com/rss/news.xml’ );
$site_hash[] = array ( “url” => ‘http://feeds.feedburner.com/blabbermouth’ );
$site_hash[] = array ( “url” => ‘http://www.thegauntlet.com/news/news.rss’ );
$site_hash[] = array ( “url” => ‘http://www.metalhammer.co.uk/feed/’ );
$site_hash[] = array ( “url” => ‘http://blog.mojo4music.com/blog/index.xml ‘);
$site_hash[] = array ( “url” => ‘http://feedproxy.google.com/pitchfork/today’ );
$site_hash[] = array ( “url” => ‘http://www.rollingstone.com/rockdaily/index.php/feed/’ );
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir and cache time limit (3600 seconds)
// (don’t forget to chmod cahce dir to 777 to allow writing)
$rss->cache_dir = ‘rss’;
$rss->cache_time = 3600;
$rss->cp = ‘UTF-8’;
$rss->date_format = ‘l’;
foreach ($site_hash as $index => $hash) {
if (isset($hash[“url”]) && !empty($hash[“url”])) {
$rssurl = $hash[“url”];
} else {
// No url to fetch
continue;
}
if ($rs = $rss->get($rssurl)) {
if (isset($rs[“items”]) && !empty($rs[“items”]) && is_array($rs[“items”])){
echo “
// Display the logo
if (isset($rs[“image_url”]) && !empty($rs[“image_url”]) ){
echo ‘‘;
}
foreach ($rs[“items”] as $index => $hash_arr){
echo “
“;
}
echo “
“;
}
}
}
?>