I'm making this script which reads of the BBC RSS weather. Unfortunatly it isnt displaying the RSS. Have I got my nodes mixed up or somthing?
<?php
function xml_via_proxy ($url) {
$context = stream_context_create(
array('http'=>
array('proxy'=>'cache.uwe.ac.uk:8080')
));
$contents = file_get_contents($url, false, $context);
return simplexml_load_string($contents);
};
$weather = xml_via_proxy("http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/0105.xml");
$description = $weather->rss->channel->item->description;
?>
<table border="1">
<h1>EALA</h1>
<tr><td>Description</td><td><?php print $description ?></td></tr>
</table>