Jump to content

file_get_contents() problem


php_b34st

Recommended Posts

Hi I have a script which uses the file_get_contents() function and in testing works. but when i upload i get the following error:

Warning: file_get_contents(): URL file-access is disabled in the server configuration in /data/members/free/tripod/uk/x/t/a/xtasyalliance/htdocs/validate.php on line 35

Warning: file_get_contents(http://hiscore.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws?user1=): failed to open stream: no suitable wrapper could be found in /data/members/free/tripod/uk/x/t/a/xtasyalliance/htdocs/validate.php on line 35

Is there a way to resolve this or do i need to buy a hosting plan?
Link to comment
Share on other sites

You are correct my host has disabled "allow_url_fopen" but what more can you expect from a free host? I guess its time i invested in a host! Thanks for the help! btw is it common for this feature to be disabled? I just dont want to buy a hosting plan to find out that it will give me the same error message
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.