"http://purl.org/rss/1.0/modules/content/", "wfw" => "http://wellformedweb.org/CommentAPI/", "dc" => "http://purl.org/dc/elements/1.1/" ); // obtain the articles in the feeds, and construct an array of articles $articles = array(); // step 1: get the feed $blog_url = "http://images.apple.com/main/rss/hotnews/hotnews.rss"; $rawFeed = file_get_contents($blog_url); $xml = new SimpleXmlElement($rawFeed); // step 2: extract the channel metadata $channel = array(); $channel["title"] = $xml->channel->title; $channel["link"] = $xml->channel->link; $channel["description"] = $xml->channel->description; $channel["pubDate"] = $xml->pubDate; $channel["timestamp"] = strtotime($xml->pubDate); $channel["generator"] = $xml->generator; $channel["language"] = $xml->language; // step 3: extract the articles foreach ($xml->channel->item as $item) { $article = array(); $article["channel"] = $blog_url; ?> comments; $article["timestamp"] = strtotime($item->pubDate); ?>