set_feed_url('http://www.hailingfrequency.co.uk/boards/index.php?type=rss;action=.xml;sa=on;board=38.0'); $feed->set_cache_duration(60); // This is 60 seconds $feed->init(); // Set the proper HTTP headers if this PHP block is the very, very first thing on the page $feed->handle_content_type(); // DOCTYPES need to be the very first thing outputted on the page... even before any whitespace. ?>
|
get_items() as $item)
{
/**
* was deprecated in HTML 4.01 back in 1999. It's also deprecated in XHTML, which you're using.
* I think what you want is a header (h1 through h6, depending on the importance). You can always change
* how tags look with CSS. Learn to love CSS, and your life will become much easier.
*/
echo '' . $item->get_title() . '';
echo ' ' . $item->get_content() . ' '; /** * was also deprecated in HTML 4.01 back in 1999. It's also deprecated in XHTML, which you're using. * Also, is an inline-level element, whileis a block-level element. block-level cannot go * inside inline-level, but inline CAN go inside block. Let's fix that. */ echo ' ' . $item->get_date() . ' '; echo ''; } ?> |