RSS feed in website issue

Caporegime
Joined
25 Jul 2005
Posts
28,851
Location
Canada
I'm trying to add an RSS feed from my blog to my website but am having a few issues...

I'm following this guide but have hit a stumbling block...

I'm using this code:

PHP:
<div id="cont4">
            <?php include('http://wildaboutlife.net/test/site/rss2html.php?XMLFILE=http://wildaboutlife.net/wp/feed/&TEMPLATE=http://wildaboutlife.net/test/site/template.html&MAXITEMS=20 target="_blank">'); ?>
        	</div>

and have uploaded the prerequisite files and renamed the document to .php yet I get this error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /mounted-storage/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/index.php on line 82

Warning: include(http://wildaboutlife.net/test/site/...tlife.net/test/site/template.html&MAXITEMS=20 target="_blank">) [function.include]: failed to open stream: no suitable wrapper could be found in /mounted-storage/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/index.php on line 82

Warning: include() [function.include]: Failed opening 'http://wildaboutlife.net/test/site/...tlife.net/test/site/template.html&MAXITEMS=20 target="_blank">' for inclusion (include_path='.:/usr/share/php5/') in /mounted-storage/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/index.php on line 82

Problem is I don't understand what it means... Is it something to do with the host (it's running on my website not local machine) or is it something I need to correct in the code?

EDIT: and the page in question (although it may be subject to change)... http://wildaboutlife.net/test/site/index.php

Thanks:)
 
Last edited:
PHP:
<div id="cont4">
            <?php include $_SERVER['DOCUMENT_ROOT'] . ('/test/site/rss2html.php?XMLFILE=http://wildaboutlife.net/wp/feed/&TEMPLATE=http://wildaboutlife.net/test/site/template.html&MAXITEMS=20 target="_blank">'); ?>
        	</div>

Try that.

Warning: include(/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/rss2html.php?XMLFILE=http://wildaboutlife.net/wp/feed/&T...tlife.net/test/site/template.html&MAXITEMS=20 target="_blank">) [function.include]: failed to open stream: No such file or directory in /mounted-storage/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/index.php on line 84

Warning: include() [function.include]: Failed opening '/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/rss2html.php?XMLFILE=http://wildaboutlife.net/wp/feed/&T...tlife.net/test/site/template.html&MAXITEMS=20 target="_blank">' for inclusion (include_path='.:/usr/share/php5/') in /mounted-storage/home41c/sub006/sc31450-GAJI/wildaboutlife.net/test/site/index.php on line 84

With the new option tried.

It's not too much of an issue now though as I managed to use an RSS to javascript webpage that seems to work ok and integrate around about ok. I would rather have done it in house but if that's not possible then... :)

Thank anyway guys.:)

EDIT: Having said that the new error looks more like it can't find the file it's looking for? Maybe fixable?
 
Back
Top Bottom