CaRP: Caching RSS Parser - Documentation
CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
CarpCacheFilter( url, cachefile );
Store a local copy of a newsfeed, and filter items out of itEvolution | LE | Koi | SE |
>=3.4 | All | >=3.4 | >=3.4 |
This function combines CarpCache and CarpFilter
Arguments:
- url: The address of the RSS newsfeed. May be a URL, path to a local file, or data from a Grouper cache specified as "grouper:cache-name". Note that Grouper must be loaded before calling CarpCacheFilter if using the "grouper:" syntax.
- cachefile: The filename of the cache file in which to store a reformatted copy of the newsfeed, based on your configuration settings. Note that while you are working on the formatting of a newsfeed, you will need to delete the cache file each time you wish to change it's appearance in order for it to update.
Return value: none
Usage Example:
<?php require_once '/home/geckotribe/carp/carp.php'; CarpConf('cborder',''); CarpConf('caorder','link'); CarpConf('filterin','Gecko Tribe'); CarpCacheFilter('http://www.geckotribe.com/press/rss/pr.rss','filtered1'); CarpFilter('/home/geckotribe/public_html/feeds/myfeed.rss','filtered2'); CarpAggregate('filtered1|filtered2'); ?>