I'm trying to build a simple rss feed reader, and I had a script that would generate a list of all the links in an individual rss feed, but I seem to have lost it. What I'm looking for is a way to return an array of the <link></link> tags from an rss feed. For instance ... given a link to http://rss.cnn.com/rss/cnn_topstories I'd like to return a array ...
$links = array(
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html,
http://rss.cnn.com/~r/rss/cnn_topstorie ... index.html
);
and it would also be nice if I could return another array of the corresponding titles. Any help would be appreciated. Thanks.
extract items from rss feed
Moderator: General Moderators