Ciao a tutti!

Mi sto rimboccando le maniche con pear XML_RSS. Ma vorrei creare un oggetto di questo oggetto.

Mi spiego: voglio creare un oggetto "feed" all'interno del quale voglio creare un altro oggetto
Codice PHP:
$this->rss=new XML_RSS($this->target); 
Ma non mi funziona molto bene .. e secondo me c'è qualcosa che non ho tenuto in considerazione ma non riesco a trovare cosa. Vi scrivo il codice che non funziona
Codice PHP:
include_once('XML/RSS.php');

class 
LettoreFeeds {
    var 
$main_title;
    var 
$elemento;
    var 
$rss_target;
    var 
$rss;
    
    
    function 
LettoreFeeds($rss_target){
        
$this->rss_target=$rss_target;
    }
    
    function 
ScriviFeed(){
        
$this->rss=new XML_RSS($this->target);
        
$rss->parse() or die ("Lettra del Feed RSS impossibile");
        
$this->main_title=$this->rss->getChannelInfo['title'];
        
$this->elemento=$this->rss->getItems();
        foreach(
$this->elemento as $el){
            echo 
"

[b]"
$el['title'] ."[/b]
- "
strip_tags($el['description']) ;
        }
    }
    
}

$target='http://microarraybulletin.com/community/?feed=rss';

$prova=new LettoreFeeds($target);
$prova->ScriviFeed(); 
mi da errore Fatal error: Call to a member function parse() on a non-object nella linea $rss->parse() or die ("Lettra del Feed RSS impossibile")

come posso fare? che sbaglio?

grazie infinite

Luca