RSS is a family of web feed formats used to publish frequently updated content such as blog entries, news headlines or podcasts. An RSS document, which is called a "feed," "web feed," or "channel," contains either a summary of content from an associated web site or the full text. RSS makes it possible for people to keep up with their favorite web sites in an automated manner that's easier than checking them manually.
In this article we'll see how to parse RSS Feeds using the PEAR package XML_RSS.
Issue this command in the command line,
pear install --alldeps XML_RSS
$feed_uri = "http://www.go4expert.com/external.php?type=rss&forumids=17";
$rss =& new XML_RSS($feed_uri);
print("<h1>New PHP articles from <a href=\"http://www.go4expert.com\">Go4Expert</a></h1>\n");
foreach ($rss->getItems() as $item)