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 select items containing any of the words "Microsoft", "Oracle", "Sun", or "IBM" in either the title or description from two different newsfeeds, and display the four most recent. Note that the newsfeeds must contain either a pubDate or dc:date field for their items in order to correctly select the most recent stories:

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

// don't display any channel fields

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

// set up the filtering

// show up to 4 items

// show upt o 100 characters from the description

// refresh every 2 hours

// Filter each newsfeed and cache the results
CarpCacheFilter("", "agg2-slashdot");
CarpCacheFilter("", "agg2-infoworld");

// combine the results from the two newsfeeds
Example Output:

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

[CaRP] Cache file not found.
Samsung Shows 'Eye Mouse' For People With Disabilities
by Soulskill
25 Nov 2014 at 4:31pm
Samsung today announced a project among a group of its engineers to build an input device that al...
How Intel and Micron May Finally Kill the Hard Disk Drive
by Soulskill
25 Nov 2014 at 3:01pm
itwbennett writes: For too long, it looked like SSD capacity would always lag well behind hard di...
NASA To Deploy Four Spacecraft To Study Magnetic Reconnection
by Soulskill
25 Nov 2014 at 1:37pm
Zothecula writes: NASA has released a video depicting the initial deployment of an undertaking de...
The Schizophrenic Programmer Who Built an OS To Talk To God
by Soulskill
25 Nov 2014 at 12:54pm
rossgneumann writes: Terry Davis, a schizophrenic programmer, has spent 10 years building an oper...