file_get_contents() error

Your server must have the allow_url_fopen property set to true. Being on a free webhost explains it, as it’s usually disabled to prevent abuse. If you paid for your hosting, get in contact with your host so they can enable it for you.

If changing that setting is not an option, then have a look at the cURL library.

Leave a Comment