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

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

The following code will display the Next Week Times RSS feed as shown in the right hand column.

First, in the <head> section of your webpage, define a few CSS styles:

<style type="text/css">
.h2 {
     font-family: Trebuchet MS,Palatino,Times New Roman,serif;
     font-size: 13pt;
     font-weight: bold;
}
.h3 {
     font-family: Verdana,Arial,Helvetica,sans-serif;
     font-size: 9pt;
     font-weight: bold;
}
</style>

Then, this code in the <body> of your webpage will display the newsfeed. Notice the use of "h2" and "h3", the classes defined above.

<div style="width:220px;border:1px solid #333333; background:#eeeeee; padding:5px;">
<?php
require_once "/path/to/carp.php";

// Show 3 items
CarpConf('maxitems',3);

// surround the item link with a DIV
CarpConf('bilink','<div style="background:#cccccc; width:210px; padding:2px; border:1px solid #333333;">');
CarpConf('ailink','</div>');

// get rid of the underline under the links
CarpConf('ilinkstyle','text-decoration:none');

// set the CSS classes of the channel and item links
CarpConf('clinkclass','h2');
CarpConf('ilinkclass','h3');

// Display it
CarpCacheShow('http://nwt.mouken.com/rss/headlines.rdf');
?>
</div>
Example Output:

Alpha Gecko : The Divined Comedy
<p>Visions of a curious future</p>

by Antone Roundy
13 Aug 2005 at 5:28pm
The electronic crystal ball has shown me two words: “prehistoric comedy”. I see a caveman. I see laughing crowds. I see Chicago. I see spandex jackets. The future becomes clear. Rob Becker’s play Defending the Caveman, a comedy about how men and women struggle to relate, in playing in Chicago. This much you can learn without [...]
by Antone Roundy
13 Apr 2004 at 4:45pm
The electronic crystal ball has shown me two words: “Douglas Ankara”. I see a wedding. I see two cities. I see the Orient. I see Spain. The future becomes clear. On March 28, 1920, Douglas Fairbanks and Mary Pickford married. Ten years later the names of Constantinople and Angora were changed to Istanbul and Ankara. Eight [...]
by Antone Roundy
2 Apr 2004 at 3:39pm
The electronic crystal ball has shown me two words: “each morsel”. I see little fish. I see bigger fisher. I see even bigger fishermen. The future becomes clear. During the past fishing season, striped bass provided good fishing off the Connecticut coast until bluefish began consuming too much of the local baitfish. Without the small fish, [...]

News Headlines on ANY Website

Import RSS newsfeeds into ANY website! Pick your price:
$29.97: Use Jawfish, our RSS to JavaScript or frames conversion service (works with ALL websites)
Free: Download CaRP SE, our free RSS parser (requires PHP)
$47: Get the high-powered, plugin-extendable version, CaRP Evolution