FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


RSS feed to my site not working





DoctorBeaver
I've added an RSS news feed to my site. On my test site at home it works fine, but at Frihost nothing shows. I originally had a horoscope feed and that worked fine.

Here's the code I'm trying to use now...

Code:
<?php
$olderror_reporting =error_reporting(0);
include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnews
%3Fned%3Dus%26topic%3Dw%26output%3Drss,http%3A%2F%2Fnews.google.com%2Fnews
%3Fned%3Dus%26topic%3Dt%26output%3Drss,http%3A%2F%2Frss.news.yahoo.com%2Frss
%2Fentertainment,http%3A%2F%2Frss.news.yahoo.com%2Frss%2Foddlyenough,http%3A%2F
%2Fwww.variety.com%2Frss.asp%3Fcategoryid%3D1023,http%3A%2F%2Fnewsrss.bbc.co.uk
%2Frss%2Fnewsonline_uk_edition%2Fworld%2Frss.xml,http%3A%2F%2Ftoday.reuters.com%2Frss
%2FtopNews,http%3A%2F%2Ftoday.reuters.com%2Ftv%2Frss%2Fworld,http%3A%2F
%2Ftoday.reuters.com%2Frss%2FscienceNews,http%3A%2F%2Ftoday.reuters.com%2Frss
%2FoddlyEnoughNews&newpage=1&chead=1&atl=1&desc=1&owncss=1&eleminate=&auth=1&
dts=1&width=300&max=3&tlen=0&rnd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=600
&nht=0&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=&ims=1&tc=&ts=11&tfont=Verdana,
+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF'].
"&phpout=1");
error_reporting($olderror_reporting);
?>


(I've added line feeds so that it doesn't make the page a mile wide, but that whole middle part is on 1 line in my actual code)

and here's the old code that worked...

Code:
<div align="center"><script type="text/javascript" src="http://pub22.bravenet.com/history/remote.php?usernum=1859319634&amp;cpv=2">
</script></div>


I note that the new feed uses a php include from an external source whereas the old 1 is in Javascript. Does that make a difference?
DoctorBeaver
I've replaced the php code with the javascript for the same feed and that works. So, it seems it's just php external includes that don't work. Why is that?

The php version is allegedly more search engine friendly so I'd prefer to use that if possible.
mathiaus
Frihost doesn't allow URLS's in includes and fopen, only local paths.
Try Curl. (I don't know curl so can't help here sorry).
rvec
moved to webhosting support
DoctorBeaver
mathiaus wrote:
Frihost doesn't allow URLS's in includes and fopen, only local paths.
Try Curl. (I don't know curl so can't help here sorry).


OK. Thanks.
Related topics
RSS feed for the forum
Greetings from the island of Malta
RSS Generator script
RSS feed problem
RSS feed question
Site Addon: RSS Feed
RSS Feed Update Issue
RSS feeds from my Frihost site
What is RSS Feed?
Is RSS Feed worth for my site?
try to parse RSS Feed?
Is it Possible to write your own Site Map
Free cartoon RSS feed?
How do you create a RSS-feed?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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