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
Configuration
Configuration is done by changing the values in the array $carpconf.
You may
change the defaults by modifying carp.php itsself.
You may
override the defaults for a particular RSS feed by inserting lines like "CarpConf('cachepath','/my/private/cache/path');"
after the line where you "require_once" CaRP, and before calling CarpShow().
The following options are defined in $carpconf, and are color-coded based on the likelihood that you'll want to change them, as follows:
usually changed,
often changed,
sometimes changed,
rarely changed
Cache Control |
Content-Based Filtering |
Display Formatting |
Miscellaneous |
Network Connection |
XML Encoding
Content-Based Filtering:
- filterin: Display only items which contain any of a specified set of words or phrases.
When specifying more than one word or phrase, separate each with a "pipe" character (|).
By default, CaRP checks both the title and description fields of each item for the indicated words.
To check only one or the other, specify that word or phrase like "title:word" or "description:phrase to search for".
Note that you must specify title or description for each word or phrase that you wish to only check one field for.
For example, if filterin is set to "title:microsoft|apple", the title will be checked for "microsoft", and both the title and description will be checked for "apple".
Note that you cannot search for pipe characters and colons.
- filterout: Do not display items containing any of the indicated words.
The format is the same as filterin.
Note that you may use both filterin and filterout at the same time.
- skipdups: 1 to skip duplicate items, 0 to show all items.
An item is considered to be a duplicate if its title (headline) is identical to one that has already been displayed in this newsfeed or aggregation.
This feature is only supported by the commercial version.