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
Network Connection:
- basicauth: To access a newsfeed which requires a username and password and accepts "Basic" authorization, enter your credentials here as "username:password".
- proxyauth: If you are using a proxy server which requires authorization and accepts "Basic" authorization, enter your credentials here as "username:password".
- proxyserver: The address of your web proxy server, if any.
NOTE: The address should be specified as "http://proxy.server.com", without a trailing slash ("/").
- maxredir: The maximum number of redirects to follow before giving up (default 10).
- timeout: The number of seconds to wait during the "CONNECT" phase of setting up a TCP/IP connection before aborting the attempt to load the RSS feed
- sendhost: 1 to send the "Host" HTTP header, 0 to not send it--sending this almost never causes a problem, and is often necessary