mam następujący problem otóż nie wiem jak zrobić taki skrypt aby w tabeli pobierał mi dane z nagłówków z kanału RSS i abym resztę sam dodał.
mam już tyle :
<?php class Rss { public $rssFile; public $cacheFile; public $xml; private $cacheDir; public function __construct ( $rssFile , $cache = 'on' , $cacheDir = 'cache' ) { $this->rssFile = $rssFile; $this->cacheDir = $cacheDir; if ( $cache == 'on' ) { $this->xml = simplexml_load_file ( 'cache/' . $this->cacheFile . '.php' ); } else { $this->xml = simplexml_load_file ( $this->rssFile ); } } else { $this->xml = simplexml_load_file ( $this->rssFile ); } } public function clearAllCache () { } } public function clearOneCache ( ) { } public function rssInfo () { $arr['version'] = $this->xml->attributes(); $arr['title'] = $this->xml->channel->title; $arr['description'] = $this->xml->channel->description; return $arr; } public function getRss() { return $this->xml->channel->item; } } ?>
ps. chciałbym aby te tabele były jedna pod drugą takie jakby tabelę po kilka na stronie. Jestem ciemny w tych tematach wiem tylko tyle, że trzeba dodać pętlę for w miejscu gdzie są pobierane nagłówki .
Pozdrawiam.