<?php// Include the SimplePie 1.1 libraryrequire_once('../simplepie.inc');// Set up and initialize the feed$feed = new SimplePie();$feed->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.?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Star Trek Online Latest News from STOzone</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body { font:12px/1.4em Verdana, sans-serif; color:#fff; font-size:8pt; /* Points should only be used for print, not for web. Use px, em, or % for web font sizes. */ width:520px; height:335px; margin:50px auto; /* You're already setting this, so I pulled out your other margin rules. */ padding:0; background-color: #28241D; } a { color:#6fcce3; text-decoration:underline; font-size: 10pt; /* Points should only be used for print, not for web. Use px, em, or % for web font sizes. */ padding:0 1px; } </style> </head> <body> <!-- Why are we using a table here? Tables are intended for tabular data, not for layout. Even if you are using it for layout purposes, it's still unnecessary with the layout you have for this page. --> <table width="520" height="330" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <?php foreach ($feed->get_items() as $item) { /** * <b> 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 '<b><a target="_blank" href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></b>'; echo '<p>' . $item->get_content() . '</p>'; /** * <i> was also deprecated in HTML 4.01 back in 1999. It's also deprecated in XHTML, which you're using. * Also, <i> is an inline-level element, while <p> is a block-level element. block-level cannot go * inside inline-level, but inline CAN go inside block. Let's fix that. */ echo '<p><i>' . $item->get_date() . '</i></p>'; echo '<hr />'; } ?> </td> </tr> </table> </body></html>