including a remote file in PHP

To allow inclusion of remote files, the directive allow_url_include must be set to On in php.ini

But it is bad, in a security-oriented point of view ; and, so, it is generally disabled (I’ve never seen it enabled, actually)

It is not the same as allow_url_fopen, which deals with opening (and not including) remote files — and this one is generally enabled, because it makes fetching of data through HTTP much easier (easier than using curl)

Leave a Comment