Hello
Found a script on these boards which almost works.
Problem is <description> node in the xml exists twice.
It outputs the first one, but I want the second.
How do I change this script so it outputs channel->item->description
rather than channel->description ?
<?php
## GET WEATHER INFO TO STRING
$weather = file_get_contents("http://feeds.bbc.co.uk/weather/feeds/rss/5day/id/3616.xml");
## SET UP PATTERNS
$description = "@<description>([a-zA-Z0-9\,\-\_\s]*)</description>@";
## MATCH PATTERNS, GET INFORMATION
preg_match($description, $weather, $matches);
$info['desc'] = $matches[1];
## DISPLAY INFORMATION
echo 'Temp: '.$info['desc'].'';
?>
Many thanks!