Many of my plugins read from XML or RSS feeds. In these cases, I read the files using the PHP
file_get_contents() command. However, if you get the following error…
Warning: file_get_contents(): URL file-access is disabled in the server configuration
..then this means that your PHP is not configured to allow this command.
If you can, edit your
php.ini file (usually located in
/etc/php.ini) and make sure this line is in it:
allow_url_fopen = On
If you can’t edit
php.ini, you can try the following…
If you don’t have one already, create a file called
.htaccess in your root folder. Now add the following line:
php_value allow_url_fopen on
If that doesn’t work then, well, that’s probably down to restrictions by your host.