How to access remote url’s via PHP

When the website is throwing an error message without loading the contents which refers to the remote url’s (in general news feeds), you need to enable the following PHP parameter.

============
allow_url_include
============

You can enable this PHP parameter by adding the following line in the php.ini file.

============
 allow_url_include = On
============

You can also enable by adding the following line in the .htaccess file.

============
 php_flag allow_url_include On 
 ============

Leave a Reply