CaRP: Caching RSS Parser - Manual
     Version 3.5.4 (10/7/2004)

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 | Upgrading from version 2 | Functions | Examples | Donations

Old documentation: Version 2

Styles & Classes | Multiple Feeds on a Page | Unordered List | Background Refreshing | Filtering | Aggregating 1 | Aggregating 2 | Associates | 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:

require_once "/path/to/carp.php";

// don't show any channel fields

// display a bullet before each item
CarpConf('bi','&bull ');

// only show items mentioning Microsoft

// show up to 3 items from each newsfeed

// show up to 100 characters of the description

// don't show "Newsfeed display by CaRP" after each newsfeed

// Update every 2 hours

// filter and display the data from each newsfeed
<i><a href="" target="_blank">Newsfeed display by CaRP</a></i>
Example Output:

[CaRP] XML error: Undeclared entity error at line 42 - This appears to be an HTML webpage, not a feed.

[CaRP] Can't open remote newsfeed [404].

[CaRP] Cache file not found.
&bull Microsoft Makes It Easier to Say No to Windows 10
by David Jones
28 Jun 2016 at 4:30pm
Microsoft on Tuesday announced a new Windows 10 upgrade policy -- weeks after losing a $10,000 ca...
&bull Social's Turning Point
by Denis Pombriant
24 Jun 2016 at 2:31pm
Microsoft's acquisition of LinkedIn for more than $26 billion has created quite a stir -- at leas...
&bull Microsoft Sees Fertile Ground in Cannabis Compliance
by David Jones
21 Jun 2016 at 3:25pm
Microsoft has entered a partnership with Kind Financial to create an entity that will obtain gove...

Newsfeed display by CaRP