Hi,

I am using simplepie library (simplepie.org) to write a simple script. I want to use a XML feed with GET request.

How can I do it?

PS: I'm a PHP newbie..

Code:
<?php
require_once('simplepie.inc');
 
$feed = new SimplePie();  
$feed->set_feed_url(ttp://blah.com/atom.xml?max-results=100);  
$feed->set_item_class();  
$feed->enable_cache(true);  
$feed->set_cache_duration(3600);  
$feed->set_cache_location('cache');  
$feed->init();  
$feed->handle_content_type();  
 
 
foreach ($feed->get_items() as $item)
{
                 echo $item->get_title();                    
}
 
?>