To work with remote files in PHP you need to enable
allow_url_fopen
allow_remote_files
both of above
none of above