Re: Parsing RSS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/08/06, John Taylor-Johnston <
John.Taylor-Johnston@xxxxxxxxxxxxxxxxxxxxx> wrote:

Is there something already created to open an rss file, parse it, and
include() the useful stuff into an html file?
Not all my students have an rss reader.

http://jtjohnston.ca/jtjohnston.rss




Yep. The PEAR XML_RSS class.



for example:

$feed = 'foo.rss';

$rss =& new XML_RSS($feed);
$rss->parse();

foreach ($rss->getItems() as $item) {
// output rss
}




--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux