README 1.3 KB

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