PHP - How to Read RSS
Tuesday, June 12th, 2007Here's an example of how easy it is to parse RSS feeds using SimpleXML. This particular code reads the RSS of the upcoming Marakana public courses. You can use it on your website.
// The List of Public Courses across all Locations
$feed = simplexml_load_file( "http://marakana.com/training/schedule.rss" );
foreach( $feed->channel->item as $item ) {
echo '<a href="', $item->link, '">', $item->title, "</a><br/>\n";
}
?>
Go ahead, try it!
Marko
Content management system, or CMS, is a very common web application type. The main idea is to enable site administrator to easily change the content of a web site, without need to know anything about web design and web development process. Usually, CMS provides easy-to-use interface for changing the web site content.