This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Allow_url_include

In the newer versions of PHP, they 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.

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 is enabled. Also, you will need to copy your php.ini into the directory on your server where the script is which 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.

Knowledgebase Article 180,846 views bookmark tags: include php remote url


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Many popular website platforms use PHP for rendering their content. It’s common for these sites to have automatic update tools to ensure that they work with the latest version of PHP, however sometimes a theme or plugin for these services may prevent them from updating or may not work with a newer
Knowledgebase Article 158,226 views tags: deprecation discontinue end php upgrade

Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
Knowledgebase Article 153,233 views tags: easyapache php vps whm

How do I use .html files to run SSI (Server Side Includes)?
Knowledgebase Article 310,564 views tags: apache execute file handlers include script ssi

Related Help Content

Why am I getting Server 500 errors with php scripts?
Knowledgebase Article 250,870 views tags: directive forcetype phpsuexec tricks

The redirection of www.yourdomain.com/default.html or index.html to http://www.yourdomain.com/index.php?act=whatever redirects it to http://www.yourdomain.com/index.php%3fact=whatever In other words,
Knowledgebase Article 1,035,940 views tags: htaccess messing mod php redirect redirects rewrite variable variables

How do I increase my file size limit in my PHP application?
Knowledgebase Article 635,628 views tags: optimize php upload uploads

If you are receiving an error that the page could not be displayed when trying to log into the control panel. It is most likely due to the fact that your firewall is blocking the port that the control
Knowledgebase Article 428,524 views tags: accessing control firewall log login panel

This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site.
Knowledgebase Article 275,435 views tags: home site url wordpress wordpresstools

How to change your PHP version in your hosting account
Knowledgebase Article 902,025 views tags: config php selection version

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
Knowledgebase Article 190,846 views tags: package pear php

How do I change the PHP environment for my site with php.ini?
Knowledgebase Article 808,627 views tags: configuration ini php server

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.