View Single Post

  #5 (permalink)  
Old 20-12-2007, 02:17 PM
Forbairt's Avatar
Forbairt Forbairt is offline
respect my AW-THOR-IT-AYY
Recent Blog: Geansai Gorm
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,100
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

create a new file just to test its all working "filename.php"

put all your code into it I've simplified it slightly ... I think this code was being included as part of another file.


Code:
<?php

require_once 'rss_fetch.inc';

$url = 'http://news.bbc.co.uk/rss/newsonline_uk_edition/northern_ireland/rss091.xml';
$rss = fetch_rss($url);

echo "Site: ", $rss->channel['title'], "<br>\n";

foreach ($rss->items as $item ) {

 $title = $item[title];
 $url   = $item[link];
 $description   = $item[description];
 echo "<a href=$url>$title</a><br>$description</li><br>\n";

}

?>
once you know this is working ...

anywhere you want this to appear you could just put the code
<?PHP include "filename.php"; ?>
__________________
Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it )
Recent Work: Safari Club African Safari Holidays - Malawi Safaris
Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools
Reply With Quote