set_feed_url('http://pipes.yahoo.com/pipes/pipe.run?_id=7479b77882a68cdf5a7143374b51cf30&_render=rss'); // Run SimplePie. $feed->init(); // This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn't change it). $feed->handle_content_type(); // Let's begin our XHTML webpage code. The DOCTYPE is supposed to be the very first thing, so we'll keep it on the same line as the closing-PHP tag. ?> get_items() as $item): $url = $item->get_permalink(); if (strpos($url,'twitter')) { $source = 'twitter'; } else if (strpos($url,'openstack.org/blog')) { $source = 'blog'; } else { $source = 'web'; } ?>