VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1 ]
Subject: Re: CARPCache multiple URL's


Author:
Antone
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 14:41:36 10/21/05 Fri
In reply to: Bob 's message, "CARPCache multiple URL's" on 10:33:29 08/10/05 Wed

>Hi I am using the free version of CARP to gather XML
>files and am parsing them with my own script. I am not
>a programmer and need some help with getting CARPCache
>to work with multiple URL's. Any help would be
>appreciated.
>
>Here is my current script:
>#!/usr/bin/php -q
> >require_once '/home/these8/carp/carp.php';
># CarpConf('phperrors',E_ALL);
>CarpConf('cacherelative',1);
>CarpCache('http://www.millersmiles.co.uk/millersmiles.x
>ml', 'millersmiles.xml');
>$file =
>'/home/mydomain/carp/manualcache/millersmiles.xml';
>$newfile =
>'/home/mydomain/public_html/rss/millersmiles.xml';
>
>if (!copy($file, $newfile)) {
> echo "failed to copy $file...\n";
>}
>?>
>
>I would like to get multiple RSS feeds (URL's) and
>name each one differently. Any help would be
>appreciated. Thanks.

You just need to repeat the lines from CarpCache on down for each feed you want to cache. Be sure to change both the URL and the cache file name in the call to CarpCache.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.