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] Can't open remote newsfeed [404].

[CaRP] Can't open remote newsfeed [404].
&bull Microsoft Curtails Email Snooping After Leak Controversy
by Robert McMillan
28 Mar 2014 at 6:05pm
A week after being caught snooping through the hotmail account of an unnamed French journalist wh...
&bull The Wittiest, Most Insightful Comments on WIRED This Week
by Emily Dreyfuss
28 Mar 2014 at 12:38pm
There was a lot to comment on this week, and you guys were up to the challenge. Facebook gobbled ...
&bull Major Tech Firms Join White House in Climate Change Pledge
by Peter Suciu
28 Jul 2015 at 7:00am
President Barack Obama, Secretary of State John Kerry, and other senior White House officials on ...
&bull Microsoft Bolsters Dynamics CRM With FieldOne Buy
by Peter Suciu
17 Jul 2015 at 3:07pm
Microsoft on Thursday announced that it has reached an agreement to acquire FieldOne, developer o...

Newsfeed display by CaRP