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 89,240 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

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

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

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

Related Help Content

PHP Version Selection (PHP Config)How do I
Knowledgebase Article 391,176 views tags: config php

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 787,436 views tags: htaccess messing mod php redirect redirects rewrite variable variables

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 200,418 views tags: accessing control firewall log login panel

PHP vs PHP single php.ini vs PHP with FastCGI
Knowledgebase Article 240,207 views tags: configuration php server

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 82,527 views tags: home site url wordpress wordpresstools

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

This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Knowledgebase Article 121,348 views tags: htaccess php

How to set the default sender address, on a Dedicated Hosting account.
Knowledgebase Article 70,411 views tags: mail php whm