$ doc-> load($ url)显示错误
$doc = new DOMDocument();
$doc->load($url);
showing the following error
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);
The line no 79 is
$doc->load($url);
and the rss feed is not listing
The url to load is http://news.search.yahoo.com/rss?ei=UTF-8&p=3d&fr=ush-newsblended
$ doc = new DOMDocument();
$ doc-> load($ url);
code> pre>
显示以下错误 p>
警告:DOMDocument :: load()[domdocument.load] :评论中的双连字符:http://news.search.yahoo.com/rss?ei = UTF-8& p = 3d& fr = flush-newssblended,line:139 in / home / public_html / includes / modules / rsslib 第79行的.php p>
blockquote>
global $ RSS_Content;
$ doc = new DOMDocument();
$ doc-> load($ url);
code> pre>
第79行是 p>
$ doc-> load($ url);
code> pre>
并且rss Feed未列出 p>
要加载的网址是 http://news.search.yahoo.com/rss?ei= UTF-8& p = 3d& fr = ush-newsblended p>
div>
The URL you linked to is not an XML file.
So it ill not work with DOMDocument::load.