[!--quoteo(post=184287:date=Dec 18 2004, 08:22 PM:name=nfr)--][div class=\'quotetop\']QUOTE(nfr @ Dec 18 2004, 08:22 PM) 184287[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi -
I'm trying to get a feed from the BBC Sports website (just as a test). Code is below:
<?
require_once("../inc/rss_fetch.inc");
$url = "http://news.bbc.co.uk/rss/sportonline_uk_edition/front_page/rss091.xml";
$rss = fetch_rss( $url );
echo "Channel Title: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";
?>
However, I´m getting the following error:
Warning: MagpieRSS: Failed to fetch [a href=\"http://news.bbc.co.uk/rss/sportonline_uk_edition/front_page/rss091.xml\" target=\"_blank\"]http://news.bbc.co.uk/rss/sportonline_uk_e...page/rss091.xml[/a]. (HTTP Error: connection failed (11) in /inc/rss_fetch.inc on line 237
Channel Title:
Warning: Invalid argument supplied for foreach() in /news/news.php on line 20
I've tried with several RSS feeds but get the same error every time. Anyone know why?
Rgds,
Neil.
Hi All,
I am very new to the world of PHP and programming. I have been doing a few small things here and there. I tried the magpie RSS parser and I constantly run into the below problem. My code is same as the one posted here.
Warning: MagpieRSS: Failed to fetch [a href=\"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml\" target=\"_blank\"]http://newsrss.bbc.co.uk/rss/newsonline_wo...nt_page/rss.xml[/a] (HTTP Error: connection failed (3) in \...\magpie\magpierss-0.72\rss_fetch.inc on line 238.
I am unable to find what the error connection failed (3) means.
Any help in this regard will be most helpful.
Regards,
Vivek C.A