Include remote file in PHP

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


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.