Using cURL or Magpie is way more complicated than is needed, how about using this code to grab the feed.
PHP Code:
<?php
$url = 'http://www.codychamber.org/events.cfm?rss=1';
$xml = simplexml_load_file($url);
for ($i=1; $i<=5; $i++){
$data0 = $xml->channel[0]->item[$i]->title[0];// title
$data1 = $xml->channel[0]->item[$i]->description[0];// description
echo "<h4>".$data0."</h4></br>";
echo $data1."</br>";
echo "</br>";
}
?>
You can either grab and process the feed in real time while the page loads, but it will cause a small delay or
alternatively run the script as a cron job then store the output as a simple flat/text file that can incorperated into the page.
If you want to get really slick there is the 'double tap' system where the page loads up with the stored information then makes an AJAX call to check the RSS feed to see if anything has changed since the scheduled look and swaps the any stuff into the page half a second or so after loading finishes. A good example of this in action is the job scanner over lovelogic.net because you can see the change take place.
Bookmarks