3 MagpieRSS - a simple RSS integration tool
7 require_once(rss_fetch.inc);
9 $rss = fetch_rss( $url );
11 echo "Channel Title: " . $rss->channel['title'] . "<p>";
13 foreach ($rss->items as $item) {
14 $href = $item['link'];
15 $title = $item['title'];
16 echo "<li><a href=$href>$title</a></li>";
22 MapieRSS is an XML-based RSS parser in PHP. It attempts to be "PHP-like",
25 Some features include:
27 * supports RSS 0.9 - 1.0, with limited RSS 2.0 support
28 * supports namespaces, and modules, including mod_content and mod_event
30 * simple, functional interface, to object oriented backend parser
31 * automatic caching of parsed RSS objects makes its easy to integrate
32 * supports conditional GET with Last-Modified, and ETag
33 * uses constants for easy override of default behaviour
37 1. By open minded I mean Magpie will accept any tag it finds in good faith that
38 it was supposed to be here. For strict validation, look elsewhere.
46 Copyright(c) 2002 kellan@protest.net. All rights reserved.
47 This software is released under the GNU General Public License.
48 Please read the disclaimer at the top of the Snoopy.class.inc file.