CaRP: Caching RSS Parser - Manual
     Version 2.7.5 (8/13/2003)

NOTE: This version of CaRP is obsolete. This documentation is being left here for those who have not yet upgraded to the current version.

Download | Installation | Configuration | Functions | Examples | Donations

Examples:
Styles & Classes | Multiple Feeds on a Page | Unordered List | Background Refreshing | Filtering | Aggregating 1 | Aggregating 2 | JavaScript

This code will display any items from five different newsfeeds which contain the word "Microsoft" in either the title or description. Note that it is a good idea to set up background refreshing when accessing so many newsfeeds from the same page. Also note how $carpconf['poweredby'] was set to '' to avoid having "Newsfeed display by CaRP" displayed after the items extracted from each feed:

<?php
require_once "/path/to/carp.php";
CarpConf('preitem','&bull ');
CarpConf('filterin','microsoft');
CarpConf('showdesc',1);
CarpConf('maxitems',3);
CarpConf('maxdesc',100);
CarpConf('poweredby','');
CarpConf('cacheinterval',120);
CarpShow("http://www.osopinion.com/OSOlinks2.xml", "osopinion.example.ms");
CarpShow("http://trainedmonkey.com/news/rss.php?s=31", "trainedmonkey31.example.ms");
CarpShow("http://trainedmonkey.com/news/rss.php?s=30", "trainedmonkey30.example.ms");
CarpShow("http://www.wired.com/news_drop/netcenter/netcenter.rdf", "wired.example.ms");
CarpShow("http://www.ecommercetimes.com/perl/syndication/rssfull.pl", "ecommercetimes.example.ms");
?><br>
<i><a href="http://www.mouken.com/rss/" target="_blank">Newsfeed display by CaRP</a></i>
Example Output:


[CaRP] XML error: mismatched tag at line 39

Newsfeed display by CaRP