--- In simplepie-support@yahoogroups.com, "vacquah" <va1985@...> wrote:
>
> I sincerely apologize if this has been hashed out a couple of times.
>
> my simplepie.ic file is in a root folder called scripts. so i call it as
./scripts/simplepie.inc.
>
> mu cache folder is found at /system/cache/simplepie_cache/ folder, when
navigating from the root.
>
> I am now getting a cache is not writable error in a multifeed setup. how do i
correctly reference the cache folder in this case?
>
0.k - narrowed down my problem to the following issue -
1. if you have multiple feeds and want to show a list of say, 10 top items in
each feed - something like this:
Feed 2
tite l
title 2
Feed 2
tite l
title 2
Feed 3
tite l
title 2
you can't use this syntax ...
require_once('./scripts/simplepie.inc');
$feed = new SimplePie();
$feed->set_feed_url(array(
'http://feeds2.feedburner.com/blogspot/tRaA?format=xml',
'http://rss.groups.yahoo.com/group/webanalytics/rss',
'http://feeds2.feedburner.com/WebAnalyticsAffiliateMarketingBlog?format=xml',
rather, you have to use something like this:
require ('./scripts/simplepie.inc');
$feed1 = new
SimplePie('http://feeds2.feedburner.com/blogspot/tRaA?format=xml');
$feed2 = new SimplePie('http://rss.groups.yahoo.com/group/webanalytics/rss');
$feed3 = new
SimplePie('http://feeds2.feedburner.com/webanalyticsbook?format=xml');
now, the problem is, if you use the second option (which is what i want to do
because i want my feed shown in the grouped format above), then you run into a
problem with putting your cache folder anywhere else besides the default
location. mine is in a folder /system/cache/simplepie_cache ( from the root).
for the past 2 days, i have been tearing my hair out trying to get my multifeed
setup to point to this cache location. no luck. per this article,
http://simplepie.org/wiki/reference/simplepie/start#absolutely_totally_and_compl\
etely_wrong_under_any_and_all_circumstances - it seems my set cache location
line is being ignored. is there a way around this?