If the php.ini setting allow_url_open is set to "on" or "1", then you can include or require files via URL.
There is a huge "gotcha", though. If you open a PHP or other script file via URL, it will be as though you had opened it in a web browser. The script will be executed on the foreign server, not on your server, and all that will be included in your script is the output of that script run, not the actual source PHP code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.