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.
I would swear, but im holding back :)
http://www.yamahapkowner.com/skynews.php
Would have been so good as well, this is most annoying.
Looks like this is a dead end on freeola.
It's all security related I'm afraid.
> What I'm trying to ask is, will fsockopen still work? Just wondering
> if Bob could use that instead of fopen.
I thought about trying this but I haven't quite worked out how to use it yet.
If Torquay says it will work then I'll have a go.
> The security risks of this feature were the reason we needed to
> disable it.
Just to clarify, the feature thats been turned off is outside connections as opposed to URL wrappers for fopen/file_get_contents being off?
What I'm trying to ask is, will fsockopen still work? Just wondering if Bob could use that instead of fopen.
It may be that a future hosting product offers this service but I have nothing concrete at the moment.
The othing we offer is a virtual dedicated server at £25 per month - and because you're in your own virtual environment, you can make the box as secure or insecure as you wish.
Sorry can't be more help.
> 'tis not allowed.
That's disappointing.
So just to make sure....
You are saying that the only way I am going to be able to fetch rss files from other sites is by moving my domain to another ISP where they *do* allow the use of file_get_contents etc.
Is there no way to allow this facility on freeola?