• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Custom SimplePie Favicons


#1
So, I'm able to get all my XML content with the following code:

PHP:
// Require SimplePie
require_once('simplepie.inc');

// Initialize new feed
$feed = new SimplePie(array(
	'http://twitter.com/statuses/user_timeline/18450439.rss',
	'http://iethan.posterous.com/rss.xml',
	'http://api.flickr.com/services/feeds/photos_public.gne?id=36044296@N07&lang=en-us&format=rss_200',
	'http://vimeo.com/iethan/likes/rss',
	'http://feeds.delicious.com/v2/rss/ethan.turkeltaub?count=15',
	'http://www.dopplr.com/traveller/iEthan/feed/96de3a3152674b4bbf7a0c67c8cfee1200c40acc5b88de152bac9a77bbcaecda'
));
$feed->init();
 
// Create a new array to hold data in
$new = array();
 
// Loop through all of the items in the feed
foreach ($feed->get_items() as $item) {
 
	// Calculate 24 hours ago
	$yesterday = time() - (24*60*60);
 
	// Compare the timestamp of the feed item with 24 hours ago.
	if ($item->get_date('U') > $yesterday) {
 
		// If the item was posted within the last 24 hours, store the item in our array we set up.
		$new[] = $item;
	}
}
 
// Loop through all of the items in the new array and display whatever we want.
foreach($new as $item) {
	echo '<div id="item">';
		echo '<div class="date">' . $item->get_date('M j, Y') . ' - ' . $item->get_date('H:i:s') . '</div>';
		echo '<div class="content"><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></div>';
	echo '</div>';
}
Now, for each of those feeds, I need to designate a custom favicon. How would I do this?