RSS feeds implementation

Wanna RSS feeds implementation into your website. Please follow the steps:

1. Download RSS feed class from the link below
http://www.phpclass es.org/browse/ package/4566. html

2. Replace your required feed link in constructor of this class like….
$feedApp =new feedGenerator("http://feeds. bbc.co.uk/ weather/feeds/ rss/5day/ world/0008. xml");

The full code is here:to managing rss feeds

So if I have:

BBC.co.uk
—- London Weather

And I export it I get:

<?xml version=”1.0″ encoding=”UTF-8″?>
<opml version=”1.1″>
<head>
<title>Resco OPML export file</title>
</head>
<body>
<outline title=”BBC.co.uk”>
<outline title=”London Weather” xmlUrl=”http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0008.xml” />
</outline>
</body>
</opml>


Now, if I manually add a new feed under the BBC.co.uk, say Traffic I would edit it in my PC to this:

<?xml version=”1.0″ encoding=”UTF-8″?>
<opml version=”1.1″>
<head>
<title>Resco OPML export file</title>
</head>
<body>
<outline title=”BBC.co.uk”>
<outline title=”London Weather” xmlUrl=”http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0008.xml” />
</outline>
<outline title=”London Traffic” xmlUrl=”http://feeds.bbc.co.uk/trafic/feeds/rss/0001.xml” />
</outline>

</body>
</opml>


If I Import it back I get:

Unfilled
—– B – 2007/03/04 – 15:45:22
———-
BBC.co.uk
————–London Weather
————–London Traffic

BBC.co.uk
—- London Weather


when I should be getting:

BBC.co.uk
—- London Weather
—- London Traffic

One Response

  1. I have an great interest to learn PHP. But I can’t :( . Can I aspect any help fro you?

Leave a Reply