The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I'm trying to read in a rss file using php.
I can't get this to work on my freeola website.
This is the code I'm using...
$file = "http://www.thelocal.se/RSS/theLocal.xml";
$filetext = file_get_contents($file);
?>
I get this error...
Warning: fopen(http://www.thelocal.se/RSS/theLocal.xml): failed to open stream: Permission denied
The remote site file loads fine when I type the url direct in to my browser.
The code works fine when testing on another server, but it won't work when uploaded to my freeola webspace.
Am I doing something really stupid?
Have freeola blocked this method of getting files from other websites?
Has anybody been able to get round this?
Thanks in advance to anybody who can solve this.
Unfortunately fopen gives the same error
I'll check the permissions on htdocs when I next get a chance to ftp
Try going in your ftp to where the httpdocs/htdocs folder is, right-clicking and changing the permissions settings to all. That happened to me once when a FREEOLA site crapped up - they'd moved a server and the settings defaulted!
Also, I've never seen that method before - is it valid (Garin will know this, and so will PHP.net if I could be bothered to look). Try using a simple include, or an fopen command instead.
I'm trying to read in a rss file using php.
I can't get this to work on my freeola website.
This is the code I'm using...
$file = "http://www.thelocal.se/RSS/theLocal.xml";
$filetext = file_get_contents($file);
?>
I get this error...
Warning: fopen(http://www.thelocal.se/RSS/theLocal.xml): failed to open stream: Permission denied
The remote site file loads fine when I type the url direct in to my browser.
The code works fine when testing on another server, but it won't work when uploaded to my freeola webspace.
Am I doing something really stupid?
Have freeola blocked this method of getting files from other websites?
Has anybody been able to get round this?
Thanks in advance to anybody who can solve this.