php/RSS question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fiziwig

    php/RSS question

    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?

    thanks,

    --gary

  • Jon

    #2
    Re: php/RSS question

    We use Magpierss to parse RSS feeds, and if we want it to be dynamic, or
    store multiple feeds where a user can add their own to your site we've
    changed the code to include MySQL support. Out of the box, Magpie will parse
    any RSS feed you want... start there and work up maybe?

    "fiziwig" <fiziwig@yahoo. com> wrote in message
    news:1143752607 .148294.240170@ z34g2000cwc.goo glegroups.com.. .[color=blue]
    > 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?
    >
    > thanks,
    >
    > --gary
    >[/color]


    Comment

    • Adam Harvey

      #3
      Re: php/RSS question

      On Thu, 30 Mar 2006 13:03:27 -0800, fiziwig wrote:[color=blue]
      > 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?[/color]

      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/packag...ss.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!

      Comment

      Working...