Return to Snippet

Revision: 36641
at November 24, 2010 10:51 by eriksmith


Initial Code
<?php
					try {
						$feed = 'http://twitter.com/statuses/user_timeline/41635238.rss';
						$xml = new SimpleXMLElement(file_get_contents($feed));
						for($i=0; $i < 5; $i++){
							print '<p class="feeditem"><a href="'.$xml->channel->item[$i]->link.'">'.ltrim($xml->channel->item[$i]->description, 'shuffleInteract:').'</a><br /><span>Posted on '.date('F jS, Y', strtotime($xml->channel->item[$i]->pubDate)).'</span></p>';
						}
					} catch(Exception $e){}
				?>

Initial URL


Initial Description


Initial Title
Twitter RSS Loop

Initial Tags


Initial Language
PHP