Translations of this page?:

SimplePie RSS Parser

DokuWiki uses the SimplePie library to parse RSS and Atom feeds.

Please refer to the excellent documentation on how to work with SimplePie. To use the library in DokuWiki access it through the FeedParser subclass of SimplePie. It offers the same functionality as the original library but is configured to use DokuWiki's own HTTPClient library.

Example

Here's a simple example to print feed item titles:

require_once(DOKU_INC.'inc/FeedParser.php');
 
$feed = new FeedParser('http://feedproxy.google.com/splitbrain');
echo '<li>';
foreach ($feed->get_items() as $item):
    echo '<li>'.$item->get_title().'</li>';
}
echo '</li>';
devel/simplepie.txt · Last modified: 2009/02/06 21:24 by andi
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate