开发者

Build RSS Reader with HTML and PHP [closed]

开发者 https://www.devze.com 2023-01-31 18:07 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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.
Improve this question

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")

0

精彩评论

暂无评论...
验证码 换一张
取 消