This article describes how to enable and disable the allow_url_fopen directive in a custom php.ini file.
When the allow_url_fopen directive is enabled, you can write scripts that open remote files as if they are local files. For example, you can use the file_get_contents function to retrieve the contents of a web page.
To enable this functionality, use a text editor to modify the allow_url_fopen directive in the php.ini file as follows:
allow_url_fopen = on
To disable this functionality, modify the allow_url_fopen directive in the php.ini file as follows :
allow_url_fopen = off
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.