Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 SimplePie 来获取 RSS 提要。除 Google RSS 外,所有其他 RSS 提要均显示。我检查了echo $feed->error(),错误显示
echo $feed->error()
此 XML 文档无效,可能是由于字符无效。XML 错误:EntityRef:期待 ';' 在第 1 行第 248 列
将 https 换成 http。我遇到了同样的问题,我尝试了 Inj2011 发布的 RSS xml(评论员之一)。当我查看他的提要和我的提要时,不同之处在于协议。然后我使用http,而不是https,瞧……
使用“$feed->set_raw_data()”而不是“$feed->set_feed_url()”,例如:
$feed->set_raw_data(file_get_contents($rssurl));