FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[php] can't display rss feeds using rss2html.php

 


qbawler311
I downloaded the rss2html.php script from:

http://www.feedforall.com/download/rss2html.zip

it is a script that displays and rss feed in your web page. When I insert a rss feed into a script and post it on my frih website these are the errors i get on the web page instead of the rss feed:

Warning: main(rss2html.php?XMLFILE=http://rss.news.yahoo.com/rss/us/?feed=rss2): failed to open stream: No such file or directory in /home/qbawler3/domains/onlinepokerranks.frih.net/public_html/rss/siteReview.php on line 123

Warning: main(): Failed opening 'rss2html.php?XMLFILE=http://rss.news.yahoo.com/rss/us/?feed=rss2' for inclusion (include_path='.:/usr/local/lib/php') in /home/qbawler3/domains/onlinepokerranks.frih.net/public_html/rss/siteReview.php on line 123



Is there anything i have to do to my frih account to get php to work (inculdes? maybe) or am i just setting this up wrong? Any help on this issue will be greatly appreciated.
mathiaus
php works fine. I just think it doesnt like the second question mark in the url. Try using a rss feed that doesnt have a dynamic url (no question mark or amperstand)
qbawler311
I agree php does work fine, I got rss feeds working in a different way (using php), but when i try put this code in a file, i get the errors i posted initially instead of the rss:

<?php include("rss2html.php?XMLFILE=http://rss.news.yahoo.com/rss/us/") ?>

Where "http://rss.news.yahoo.com/rss/us/" is in rss2html.php as the rss feed.
BlackSkad
Maybe you can try to set the GET-parameter first, and then call the script without parameter.
I'm not sure you can change the $_GET like this, but it's worth a try Smile
Code:
$_GET['XMLFILE'] = 'http://rss.news.yahoo.com/rss/us/';
include('rss2html.php');
Related topics

Www.netvibes.com :: Cool Ajax with RSS feeds site!
Content is the King !!!
BetterWindowsSoftware - Saved Searches as RSS feeds
RSS Feeds:
Lock this thread - RSS feeds for 20 Frihs$

RSS feeds from my Frihost site
rss feeds
Forum RSS feeds
Forum RSS feeds
Another free directory

Google News Offers RSS and Atom Feeds
RSS integration?
RSS Generator script
rss 2.0 feeds
RSS to HTML BOX
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.