Setting the allow_url_fopen PHP directive
Learn how to configure the allow_url_fopen PHP directive on a managed VPS or Flex Dedicated Server.
This article discusses configuring the allow_url_fopen PHP directive on a managed VPS or Dedicated Server.
Important
The information in this article only applies to certain types of hosting accounts. To determine whether or not the information below applies to your account, please see this article.
Configuring the allow_url_fopen directive
Warning
You should be aware of the security implications of enabling and disabling the allow_url_fopen directive. PHP scripts that can access remote files are potentially vulnerable to arbitrary code injection.
When the allow_url_fopen directive is enabled, you can write scripts that open remote files as if they are local files. Some applications may require that the allow_url_fopen directive is enabled on your system.
However, PHP does not allow you to set the allow_url_fopen directive in an .htaccess file. Instead, to enable this functionality, please open a support ticket at https://my.hosting.com.
More Information
-
To view a complete list of PHP directives, please visit http://www.php.net/manual/en/ini.list.php.
-
For more information about the allow_url_fopen directive, please visit http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen.
Related Articles
Updated 3 days ago