Re: php/RSS question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: php/RSS question

From: Adam Harvey <aharvey@optimiser.example.com>
Date: Tue Apr 04 2006 - 03:50:07 CEST

On Thu, 30 Mar 2006 13:03:27 -0800, fiziwig wrote:
> Total newbie to RSS here...
>
> I'd like to add "latest headlines" from Yahoo's RSS feed to my website,
> but all I can find when I go looking for code examples is complete,
> elaborate RSS aggregators and news readers. I don't need the whole
> package, just some sample code for pulling and parsing the feed, or a
> good tutorial that covers the basics. The only tutorials I've found so
> far are about how to use existing aggreagators, and not how to actually
> code the php.
>
> Can anyone offer some suggestions for where I should look?

http://pear.php.net/package/XML_RSS/ seems to do what you want. There's an
example in the manual at
http://pear.php.net/manual/en/package.xml.xml-rss.example.php that will
probably give you a feel for whether it's suitable.

Adam

-- 
Adam Harvey
To e-mail: don't make an example out of me!
Received on Mon May 1 02:47:42 2006