Closed 9 years ago.
- Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they d开发者_开发知识库idn't work, and the expected results. See also: Stack Overflow question checklist
- Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Could someone point me to a guide or some information on building a simple online rss reader. I've only been able to find guides on making rss feeds for your own site. Thanks
Should it read contents from only one feed?
You might want to use simpleXML in case, here is a minimal example:
$url = $url_of_the_feed_in_question;
foreach(simplexml_load_file($url)->entry as $entry) {
echo '<h2>'.$entry->title.'<h2>'.entry->content;
}
For a more complete guide, take a look here.
(BTW, try googling for "parser" instead of "reader")
精彩评论