Simplest way to read rss feeds?

Discussion in 'PHP' started by Silver89, Oct 6, 2011.

  1. #1
    What's the simplest way in php to read rss feeds?
     
    Silver89, Oct 6, 2011 IP
  2. Moustafa.Elkady

    Moustafa.Elkady Member

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    read from external link?
     
    Moustafa.Elkady, Oct 6, 2011 IP
  3. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #3
    I decided to use:

    
    
    $rss = "url here";
    $xml = simplexml_load_file(rawurlencode($rss));
    	
    foreach($xml->channel->item as $entry)
    {
          echo "Title: ".$entry->title;
    }
    
    PHP:
     
    Silver89, Oct 6, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    Rukbat, Oct 7, 2011 IP
  5. Dommus

    Dommus Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    SimpleXML is the best way to read RSS
     
    Dommus, Oct 8, 2011 IP