Africa News
set_favicon_handler(‘handler_image.php’);
// Initialize the feed object
$feed->init();
// This will work if all of the feeds accept the same settings.
$feed->handle_content_type();
// 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();
?>
set_item_limit(1);
// function get_first_image_url($html)
// {
if (preg_match(‘/
// echo $item->get_title();
// echo ‘
‘;
} // specify the rss feed
$limit = $feed->get_item_quantity(9); // specify number of items
$items = $feed->get_items(0, $limit); // create an array of items
}
if ($limit == 0) echo ‘
‘;
else foreach ($items as $item) : ?>
get_image_link()){
$feed->handle_content_type();
echo ‘get_date(‘j F Y’); ?>
get_content()). ‘”/>’; ?>get_description(), 0, 100); ?> …
Source: