This content has been marked as final. Show 5 replies
Well anyone know the best idea on how to correct this?
On Mon, 22 Dec 2008 01:42:38 +0000 (UTC), "person98"
> Warning: main(): URL file-access is disabled in the server configuration in
>/rssfeeds.php on line 10
A lot of hosts disable using file system functions on external files. The
error suggests this is the case in your code and that your code is
attempting to get the external file using something like the
file_get_contents() function or using fopen() and fgets() to read the
content of the RSS file. The solution would be to use the CURL functions
or direct socket I/O, if that's the case. However, it's impossible to know
without seeing more of your code.
Ok, what code would you like to see? I have the code for the page to view the feed which is this...
<!--#include virtual="/rssfeeds.php" -->
Then I have the code that goes on the PHP script which it would be getting the feed from which is in the attach code part.
Wow, ok. I hate when I talk to myself on forums but hey, I figured it out!
In the php.ini file I need to have it say
allow_url_fopen = on
That allows it to work perfect.
On Mon, 22 Dec 2008 13:09:47 +0000 (UTC), "person98"
>Wow, ok. I hate when I talk to myself on forums but hey, I figured it out!
>In the php.ini file I need to have it say
>allow_url_fopen = on
>That allows it to work perfect.
If you control the server, then that's correct.