Php rss feed

hi,

im trying to use php to display an rss feed. this is what i am trying

<?php
				
		
				/*News Feed*/
				echo '<h5>News and Sport: </h5>';
					$news = get_file('http://newmountainrider.blogspot.com/feeds/posts/default?alt=rss');
					$rss = new simpleXMLElement($news);								
					$i=0;/*Limit to 6 items*/
					foreach($rss->channel->item as $item){
					if ($i<6){
					echo '<div class="news"><img src="images/rss.png" width="25" height="25" alt="" class="rssimage" align="left" /><a class="rsslink" href="'.$item->link.'">'.$item->title.'</a>';
					echo " $item->description </div>";}
					$i++;}
					echo '</div>';
			?>

im having problems with the get_file, should i be doing this differently?

thanks

Where is get_file defined? It is not a built-in PHP function.

Also, you may be able to load the feed directly when creating the new SimpleXMLElement object (see the documentation for how to do this).