Loading...

Knowledge Base
Switch to Bluehost and get money back
Migrate your WordPress website from your current host and we'll cover the costs.

Allow URL Include

The newer versions of PHP have included a new directive to control and handle remote includes. We disable this option by default, which may affect some of your PHP scripts.

Important Note: Allow_url_include is deprecated and not recommended to be enabled for sites running in PHP version 7.4. To know more about the details, please visit PHP's site for their documentations: PHP RFC: Deprecations for PHP 7.4 and Deprecated Features.

How to enable Allow_url_include

In your php.ini, put the following line:

  allow_url_include = 1

This enables remote includes.

Note: This requires allow_url_fopen =1 as well, so you may want to search through your php.ini and make sure that it is enabled. You will also need to copy your php.ini into the directory on your server where the script is calling this directory. For example, if you have a script in public_html/blog/ that needs this setting, then copy the php.ini into public_html/blog.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...