La linea dovrebbe essere così
Codice PHP:
$this->rss->parse() or die ("Lettra del Feed RSS impossibile");
Altrimenti prova così
Codice PHP:
include_once('XML/RSS.php');
class LettoreFeeds {
var $main_title;
var $elemento;
var $rss_target;
function LettoreFeeds($rss_target){
$this->rss_target=$rss_target;
$rss=new XML_RSS($this->rss_target);
}
function ScriviFeed(){
global $rss;
$rss->parse() or die ("Lettra del Feed RSS impossibile");
$this->main_title=$rss->getChannelInfo['title'];
$this->elemento=$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();