Rss
Magpierss is a good RSS parsing class that fully supports RSS 0.9-1.0 and partially supports RSS 2.0.
* Supports RSS 0.9-1.0 with limited RSS 2.0 support
* Supports namespaces, and modules, including Mod_content and mod_event
* Open minded [1]
* Simple, functional interface, to object oriented backend parser
* Automatic caching of parsed RSS objects makes its easy to integrate
* Supports conditional get with last-modified, and ETag
* Uses constants for easy override of default behaviour
* Heavily commented
The RSS parser used by the PHP News aggregation tool Lilina is magpierss.
This thing is very simple to use, below is an official example:
Require_once (RSS_FETCH.INC);
$url = $_get[' url '];
$rss = Fetch_rss ($url);
Echo
"
"
"" Channel Title: ". $rss->channel[' title ']. " ;
echo ";
foreach ($rss->items as $item) {
$href = $item [' link '];
$title = $item [' title '];
echo "
$title ";
}
echo ";