$doc->load($url) 显示错误
$doc->load($url) showing error
$doc = new DOMDocument();
$doc->load($url);
显示以下错误
Warning: DOMDocument::load() [domdocument.load]: Double hyphen within comment: http://news.search.yahoo.com/rss?ei=UTF-8&p=3d&fr=ush-newsblended, line: 139 in /home/public_html/includes/modules/rsslib.php on line 79
global $RSS_Content;
$doc = new DOMDocument();
$doc->load($url);
第 79 行是
$doc->load($url);
并且 rss 提要未列出
要加载的 url 是 http://news.search.yahoo.com/rss?ei=UTF-8&p=3d&fr=ush-newsblended
您链接到的 URL 不是 XML 文件。
所以它不适用于 DOMDocument::load。
$doc = new DOMDocument();
$doc->load($url);
显示以下错误
Warning: DOMDocument::load() [domdocument.load]: Double hyphen within comment: http://news.search.yahoo.com/rss?ei=UTF-8&p=3d&fr=ush-newsblended, line: 139 in /home/public_html/includes/modules/rsslib.php on line 79
global $RSS_Content;
$doc = new DOMDocument();
$doc->load($url);
第 79 行是
$doc->load($url);
并且 rss 提要未列出
要加载的 url 是 http://news.search.yahoo.com/rss?ei=UTF-8&p=3d&fr=ush-newsblended
您链接到的 URL 不是 XML 文件。
所以它不适用于 DOMDocument::load。