Posted: 01 Jul 2004 02:19 pm Post subject: My rss feed isnt working.. help plz
im having trouble getting my RSS feed to work.. can you help me? heres the src
<?php
$feed = "http://business.scotsman.com/ebusiness.cfm?format=rss";
require_once "HTML/Table.php";
require_once "XML/RSS.php";
$tabStyle = array("style"=>"width: 180px;",
"border"=>"0",
"cellspacing"=>"0",
"cellpadding"=>"0",
"id"=>"news");
$top = array("style"=>"width: 180px;",
"class"=>"headline");
$mid = array("style"=>"width: 180px;",
"class"=>"date");
$base = array("style"=>"width: 180px;",
"class"=>"story");
$table = new HTML_Table($tabStyle);
$rss = new XML_RSS($feed);
$rss->parse();
foreach ($rss->getItems() as $item)
{
$headline = array("<a href=\"{$item['link']}\">{$item['title']}</a>");
$table->addRow($headline, $top);
$date = array("{$item['pubdate']}");
$table->addRow($date, $mid);
$story = array("{$item['description']} <a href=\"{$item['link']}\">more...</a>");
$table->addRow($story, $base);
$table->addRow();
}
$table->display();
?>