我想使用以下代码从某个链接读取 XML 文件
$filename = 'http://XXXXX/rss.xml';
$xml = simplexml_load_file($filename);
当我尝试时,我收到以下错误消息:
wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found in
I/O warning : failed to load external entity
有什么问题?可能是服务器不支持 simplexml_load_file 吗?