FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 fopen View next topic
View previous topic
Post new topicReply to topic
Author Message
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Mon Jun 05, 2006 1:04 pm Reply with quoteBack to top

I notice that futureRSS uses "fopen" in its code. As our web host does not allow the use of "fopen", is there some way around this?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Mon Jun 05, 2006 2:11 pm Reply with quoteBack to top

Yes. One of the first few lines in the script is this:

$cfg['fetch_method'] = "fopen"; // fopen, curl

Here you can set the script to use fopen or curl. Curl is an option that is considered by some to be more secure than fopen, and should work for you.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Mon Jun 05, 2006 2:19 pm Reply with quoteBack to top

Tech Support wrote:
Yes. One of the first few lines in the script is this:

$cfg['fetch_method'] = "fopen"; // fopen, curl

Here you can set the script to use fopen or curl. Curl is an option that is considered by some to be more secure than fopen, and should work for you.

So would I replace $cfg['fetch_method'] = "fopen"; with $cfg['fetch_method'] = "curl"; ? And would there be anything else I would need to change/do?

I hope you'll forgive the seemingly dumb questions but I'm brand new at this.

With blessings,
Dal
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Tue Jun 06, 2006 8:54 am Reply with quoteBack to top

Quote:
So would I replace $cfg['fetch_method'] = "fopen"; with $cfg['fetch_method'] = "curl"; ?


That should pretty much take care of it. You shouldn't need to do anything else.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Tue Jun 06, 2006 2:33 pm Reply with quoteBack to top

If the RSS feed is a local file, such as "/home/username/example.com/feed.xml", and the future-rss script is in the same directory as "feed.xml" would the full path (as above) need to be entered or would simply "feed.xml" be sufficient?

With blessings,
Dal
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Tue Jun 06, 2006 3:51 pm Reply with quoteBack to top

Curl can't open files locally, only by using a full URL. So, you will need to give the full URL to your feed.xml file, as if you were accessing it from a browser.

Sorry. I probably should have mentioned that earlier.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Tue Jun 06, 2006 4:07 pm Reply with quoteBack to top

No need for apology. The fault was mine in my last post. I neglected to mention that I have subsequently found out that my web host, while disabling fopen for *external* links (which mine isn't) still allows fopen for *internal* links (i.e. physically located on my web host). There was some confusion over this until someone on the Support Forum on my web host clarified this.

So... to sum up (and hopefully this will be of benefit to others) fopen *can* be used if the file is locally located (i.e. located on your web host)

However, I now have one other problem *sigh*... and my apologies for all your time that I'm taking up. I put the future-rss script into the same directory on my web host as the feed file, which is named saints.xml. I then edited the future-rss script to read $cfg["rss_feed"]='saints.xml'; and renamed the future-rss script to saints.php

The problem I'm now having is this: an error message comes up reading

"Error en http:// Tue, 06 Jun 2006 14:06:18 -0700 Feed not found " when going to it via browser.

With blessings,
Dal
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Tue Jun 06, 2006 4:10 pm Reply with quoteBack to top

I should point out that the first item in the feed is scheduled for release on June 7. Whether this has anything to do with the error message, I don't know.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Tue Jun 06, 2006 5:02 pm Reply with quoteBack to top

Could you past your current version of your script (at least the beginning part) into a post so I can take a look?

Thanks.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Tue Jun 06, 2006 5:04 pm Reply with quoteBack to top

# Script setup area
#-------------------------------------------

$cfg["rss_feed"]='saints.xml';


$cfg['fetch_method'] = "fopen"; // fopen, curl
$cfg['url_override'] = true; // Warning! security unsafe!
// use "url" parameter to pass RSS feed to script
// example: http://localhost/rss_proxy.php?url=<url>

$cfg["filter_method"] = "time"; // time - display item if ITEM_TIME <= CURRENT_TIME
// date - display item if ITEM_TIME <= endOfDay(CURRENT_TIME)
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Sat Jun 10, 2006 1:56 pm Reply with quoteBack to top

No solution for this problem?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Mon Jun 12, 2006 12:39 pm Reply with quoteBack to top

Sorry for the delay.

Can you possibly post the full URLs for both your futureRSS script, and your RSS feed file?

Thanks.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Dalriadan



Joined: 03 Jun 2006
Posts: 13

PostPosted: Mon Jun 12, 2006 12:46 pm Reply with quoteBack to top

http://www.saintfillans.org.nz/rss-saints/saints.xml (feed file)

http://www.saintfillans.org.nz/rss-saints/saints.php (futurerss)
View user's profile
payclicks



Joined: 24 Aug 2006
Posts: 1

PostPosted: Thu Aug 24, 2006 10:00 pm Reply with quoteBack to top

Hey guys, I'm having the same problem as above - any word on how to fix it from this point?

Cheers!
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme