How to enable allow_url_fopen


allow_url_fopen is a security risk feature and as such it has been disabled on the server to protect the server and the accounts on it. Enabling it will put your website at risk.

Please refer to this article on the security issues of using allow_url_fopen:

<a href="" target="_BLANK"></a>

It is recommended that you implement your code with the more secured cUrl PHP extension. You can find an example of how to use cURL at the link below:

<a href="" target="_blank"> </a>

If you still want to enable it, follow the steps below:.

  1. Login to CPanel.
  2. Go to MultiPHP INI Editor.
  3. Select the domain you want.

To enable allow_url_fopen: Add the line below

allow_url_fopen = On

To disable allow_url_fopen. Add the line below

allow_url_fopen = Off

Click Save button

What are you looking for?