Page 1 of 1
Warning: file_get_contents()....
Posted: Wed Aug 16, 2006 9:01 am
by spamyboy
How can I fix it ?
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/spamyboy/public_html/engine/modules/show.full.php on line 3 Warning: file_get_contents(
http://www.468x60.lt/refer.php?5556): failed to open stream: no suitable wrapper could be found in /home/spamyboy/public_html/engine/modules/show.full.php on line 3
Posted: Wed Aug 16, 2006 9:03 am
by feyd
you don't.
Posted: Wed Aug 16, 2006 9:25 am
by spamyboy
so there is no posbile way to fix it without server admin ?
Posted: Wed Aug 16, 2006 9:26 am
by JayBird
yup
Re: Warning: file_get_contents()....
Posted: Tue Aug 22, 2006 12:51 pm
by AKA Panama Jack
spamyboy wrote:How can I fix it ?
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/spamyboy/public_html/engine/modules/show.full.php on line 3 Warning: file_get_contents(
http://www.468x60.lt/refer.php?5556): failed to open stream: no suitable wrapper could be found in /home/spamyboy/public_html/engine/modules/show.full.php on line 3
Check and see if the server has CURL installed. You can use that instead of file_get_contents. I ran into the same thing on a shared hosting service a few weeks ago. It's one of the stupidest things I have ever seen. They have disabled all URL usage in the file functions but they have installed CURL. So basically you have to rewrite all of your file calls to URLs to use CURL instead.
On the game we are developing we use file calls to URLs to access our stat tracking server and now we are going to have to add a check to the installer and change the code so it can use CURL if the file URL calls are disabled. We can't just stick with CURL because some hosts do not have it installed.
Pain in the butt. :p