×
Create a new article
Write your page title here:
We currently have 3,186 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,186Articles

    MagpieRSS: Difference between revisions

    imported>mutante
    mNo edit summary
     
    imported>mutante
    mNo edit summary
    Line 5: Line 5:
     
    MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)
     
    MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)
       
      +
    MagpieRSS requires a recent PHP 4+ (developed with 4.2.0) with XML (expat) support.
    * http://magpierss.sourceforge.net/
     
      +
      +
    Magpie consists of 4 files (rssfetch.inc, rssparser.inc, rsscache.inc, and rssutils.inc), and the directory extlib (which contains a modified version of the Snoopy HTTP client)
      +
      +
    Copy these 5 resources to a directory named ‘magpierss’ in the same directory as your PHP script.
      +
      +
    At the top of your script add the following line:
      +
      +
    require_once('magpierss/rss_fetch.inc');
      +
      +
    Now you can use the fetch_rss() method:
      +
      +
    $rss = fetch_rss($url);
      +
      +
    Done.
      +
     
    * http://magpierss.sourceforge.net/ (download)
      +
      +
    * http://laughingmeme.org/magpie_blog/?p=80 (how to install)
       
     
    [[Category:PHP]]
     
    [[Category:PHP]]

    Revision as of 20:29, 25 March 2005

    A PHP class for parsing RSS newsfeeds (and 'atom' feeds)

    MagpieRSS provides an XML-based (expat) RSS parser in PHP.

    MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)

    MagpieRSS requires a recent PHP 4+ (developed with 4.2.0) with XML (expat) support.

    Magpie consists of 4 files (rssfetch.inc, rssparser.inc, rsscache.inc, and rssutils.inc), and the directory extlib (which contains a modified version of the Snoopy HTTP client)

    Copy these 5 resources to a directory named ‘magpierss’ in the same directory as your PHP script.

    At the top of your script add the following line:

    require_once('magpierss/rss_fetch.inc');

    Now you can use the fetch_rss() method:

    $rss = fetch_rss($url);

    Done.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.