I made a tutorial a while back which parsed RSS feeds however it was really simple, in fact too simple…So here is a completely new script which parses the feeds in a completely different way. So heres a walk-through of the script… Firstly we need to represent the feed as an xml document. Using DOMDocument…More information here $xmldoc [...]
Continue reading...Wednesday, August 27, 2008
This tutorial will show you how to make a simple RSS parsing script. Here is the whole code, look below for a walk through of the script. $file = file_get_contents("Feed URL"); $xml = new SimpleXMLElement($file); foreach($xml->channel->item as $feed){ echo $feed->title.'<br>'; } Code Breakdown $file = file_get_contents("Feed URL"); $xml = new SimpleXMLElement($file); This gets retrieves the RSS Feed foreach($xml->channel->item as $feed){ echo $feed->title.'<br>'; } This gets each item from the [...]
Continue reading...
Saturday, September 13, 2008
5 Comments