It is failed when I try to include one file of other domain. We call it remote file.
The script looks like

include("http://www.YourUrl.com/includes/header.php");

Always give me error.
How to include remote file in php?
That’s the question. Answer is here below.
Enable ‘allow_url_include’ in php.ini
The default setting is off for allow_url_include
So, find the php.ini of my PHP installation, then open it, search allow_url_include.
Enable it. All done.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *