Search the web
Sign In
New User? Sign Up
simplepie-support · SimplePie Support
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
relative location of cache   Message List  
Reply | Forward Message #4020 of 4578 |
Re: relative location of cache

--- 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?







Wed Jul 1, 2009 5:32 pm

vacquah
Offline Offline
Send Email Send Email

Forward
Message #4020 of 4578 |
Expand Messages Author Sort by Date

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...
vacquah
Offline Send Email
Jun 30, 2009
10:16 pm

... 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...
vacquah
Offline Send Email
Jul 1, 2009
5:32 pm

Don't pass the URL into the constructor. Pass the URL into $feed- ... http://ref.simplepie.org/set_feed_url http://ref.simplepie.org/set_cache_location -- Ryan...
Ryan Parman
skyzyxufks
Offline Send Email
Jul 4, 2009
6:43 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help