This is a discussion on Setting up rss feeds within the Coding Help forums, part of the Webmaster Help category; cheers for the link 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); $items ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| cheers for the link 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);
$items = array_slice($rss->items, 0, 5);
echo "Site: ", $rss->channel['title'], "<br>\n";
foreach ($items as $item ) {
$title = $item[title];
$url = $item[link];
$description = $item[description];
echo "<a href=$url>$title</a><br>$description</li><br>\n";
}
?>
As such we have to change our foreach statement enjoy
__________________ Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it ) Recent Work: Safari Club African Safari Holidays - South Africa Safaris Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools |
| |||||
| no problem ... all part of the service here at Irish Webmaster Forum
__________________ Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it ) Recent Work: Safari Club African Safari Holidays - South Africa Safaris Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools |
| |||||
| Any explanation for this behavior the following feed is from RTE RTE Sport News the two I am curious about 1 St Vincent's 2-08 Tyrrellspass 0-07 2 O?Connor appointed to Kerins O?Rahillys post Source code for no 2 <h1>O'Connor appointed to Kerins O'Rahillys post</h1> question why in the second case was the apostrophe converted to ? |
| ||||
| I wish I could help on this one, but it is beyond me - the apostrophes seem to be working in some items but not in others -strange. Hopefully someone with a bit more savvy can provide an answer |
| |||||
| At a glance ... I'd say you've not defined your encoding for the page ?
__________________ Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it ) Recent Work: Safari Club African Safari Holidays - South Africa Safaris Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools |
| |||||
| And from the Irish Examiner sport Examiner Sport News Quotation marks are displayed as ? GAA due to ?serious? challenges to its amateur status. |
| |||||
| can you post your php code ? This ... Code: <?php
require_once 'rss_fetch.inc';
$url = 'http://www.rte.ie/rss/sport.xml';
$rss = fetch_rss($url);
$items = array_slice($rss->items, 0, 5);
echo "Site: ", $rss->channel['title'], "<br>\n";
foreach ($items as $item ) {
$title = $item[title];
$url = $item[link];
$description = $item[description];
echo "<a href=$url>$title</a><br>$description</li><br>\n";
}
?>
__________________ Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it ) Recent Work: Safari Club African Safari Holidays - South Africa Safaris Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools |
| |||||
| I have Last Rss working here just useing titles StColumba's hurling Club Galway might notice the header on the right for independent.ie/sport/ is missing had to remove due to @?^*. I might have a look at magpie tonight looks like a sub for me. |
| Tags |
| feeds, rss, setting |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rss feed or newsletter | Busarus | Webmaster Discussion | 4 | 02-03-2007 09:29 PM |
| RSS feeds | ph3n0m | Forum Feedback, Development and Competitions | 6 | 31-01-2007 12:39 AM |
| 1 Bag of RSS feed: 100% RDA of internet. Warning: may contain nut traces. | gary.b | General Chat | 15 | 29-01-2007 10:03 PM |
| Web RSS readers | Cormac | Webmaster Discussion | 3 | 18-10-2006 01:26 PM |
| rss feed | louie | General Chat | 0 | 29-04-2006 08:18 PM |