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

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:220; border-width:1px; border-style:solid; border-color:#333333; background:#eeeeee; padding:5px;">
<?php
require_once "/path/to/carp.php";
CarpConf('linkdiv','<div style="background:#cccccc; width:210; padding:2px; border-width:1px; border-style:solid; border-color:#333333;">');
CarpConf('linkstyle','text-decoration:none');
CarpConf('linkclass','h3');
CarpConf('showdesc|showctitle|showcdesc',1);
CarpConf('maxitems',3);
CarpConf('cclass','h2');
CarpShow("http://nwt.mouken.com/rss/headlines.rdf","nwt.cache");
?>
</div>
Example Output:


"I wanna ride the pony!"
Chess players on the web have a free place to play at Chess Hounds. Here you play in your web browser, not some proprietary chess program, so firewalls don't get in the way like they do with most proprietary systems. Come ride the pony!