Author |
Message |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Mon Jun 05, 2006 1:04 pm |

|
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?
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2694
|
Posted: Mon Jun 05, 2006 2:11 pm |

|
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
|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Mon Jun 05, 2006 2:19 pm |

|
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
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2694
|
Posted: Tue Jun 06, 2006 8:54 am |

|
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
|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Tue Jun 06, 2006 2:33 pm |

|
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
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2694
|
Posted: Tue Jun 06, 2006 3:51 pm |

|
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
|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Tue Jun 06, 2006 4:07 pm |

|
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
|
|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Tue Jun 06, 2006 4:10 pm |

|
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.
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2694
|
Posted: Tue Jun 06, 2006 5:02 pm |

|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Tue Jun 06, 2006 5:04 pm |

|
# 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=
$cfg["filter_method"] = "time"; // time - display item if ITEM_TIME <= CURRENT_TIME
// date - display item if ITEM_TIME <= endOfDay(CURRENT_TIME)
|
|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Sat Jun 10, 2006 1:56 pm |

|
No solution for this problem?
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2694
|
Posted: Mon Jun 12, 2006 12:39 pm |

|
|
 |
 |
Dalriadan
Joined: 03 Jun 2006
Posts: 13
|
Posted: Mon Jun 12, 2006 12:46 pm |

|
|
 |
 |
payclicks
Joined: 24 Aug 2006
Posts: 1
|
Posted: Thu Aug 24, 2006 10:00 pm |

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