Revision: 12061
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 28, 2009 19:51 by Unreal
Initial Code
<?php
$links = array('feed1', 'feed2', 'feed3');
foreach($links as $link){
$doc = new DOMDocument();
$doc->load($link);
$dataset = $doc->getElementsByTagName( "item" );
foreach( $dataset as $row )
{
$feeds = $row->getElementsByTagName( "link" );
$feed = $feeds->item(0)->nodeValue;
echo $feed.'<br />';
}
}
?>
Initial URL
http://www.imben.co.uk
Initial Description
This parses RSS feeds very nicely using the DOM.
Initial Title
Nice RSS Aggregator/Parser
Initial Tags
Initial Language
PHP