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
Warning: file_get_contents()....
Moderator: General Moderators
- spamyboy
- Forum Contributor
- Posts: 266
- Joined: Sun Nov 06, 2005 11:29 am
- Location: Lithuania, vilnius
Warning: file_get_contents()....
How can I fix it ?
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
Re: Warning: file_get_contents()....
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.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
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