Question:

I need help! How do I read an RSS feed using php?

by  |  earlier

0 LIKES UnLike

I would really like a good, detailed answer to this one. How do I put an RSS feed on my website? I don't want to CREATE an RSS XML document, but want to know how to READ one and WRITE the information to my page. I've searched all over the internet and I cannot find anything that works.

I would like to do it using PHP. Does anyone know a good source where I can go to get the code necessary to parse an RSS XML feed using PHP? If you can give me one that reads out of the New York Times, that would be great!

Thank you!

 Tags:

   Report

1 ANSWERS


  1. Two ways that you can do it.

    1.) If you have PHP5 you can use simpleXML, that will bring in the RSS/XML and you can manipulate it from there.

    Example:

    Grab the RSS with file_get_contents() then use: http://us3.php.net/manual/en/function.si...

    2.) You can use Magpie RSS.  It's open source PHP code that works really nicely!  Go check it out: http://magpierss.sourceforge.net/

    I suggest using #1 first unless you don't have PHP5 then #2 is by far the easiest way to go!

    Take care,

    Chad

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions