searching a rss feed

Discussion in 'PHP' started by Webalized, Feb 10, 2010.

  1. #1
    Hi

    I am looking for a way to search a rss feed using php. I don't generate this feed, I just display it. Any help is much appreciated!
     
    Webalized, Feb 10, 2010 IP
  2. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Take a look at the DOMDocument class. RSS is in its basic form is an XML file. Take a look at the SimpleXML class, use it to parse the feed and take what you want and output it.
     
    Brandon.Add.On, Feb 10, 2010 IP
  3. Webalized

    Webalized Peon

    Messages:
    208
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Could you explain that in a little more detail? i havent worked with xml much.
     
    Webalized, Feb 10, 2010 IP
  4. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Take a look at the SimpleXML page on PHP.net:

    http://php.net/manual/en/book.simplexml.php
     
    Brandon.Add.On, Feb 10, 2010 IP
  5. QuackWare

    QuackWare Member

    Messages:
    245
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #5
    QuackWare, Feb 10, 2010 IP
  6. Webalized

    Webalized Peon

    Messages:
    208
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I've looked at that stuff but im having some trouble getting things to work right. can anyone show me some examples?

    thanks!!!
     
    Webalized, Feb 10, 2010 IP
  7. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Could you post a link to the RSS feed? That way the example would directly apply to you.
     
    Brandon.Add.On, Feb 10, 2010 IP