tags:

views:

40

answers:

2

Possible Duplicate:
Best way to parse RSS/Atom feeds with PHP

I want to extract the titles, images and text from any kind of Feed Rss ( feedburner, xml, etc ).

How can I do this in PHP ?

For example, I want to extract the stuff above from this feed: http://feeds.mashable.com/Mashable

A: 

I know at least for XML you can use CURL, partnered with a foreach statment - you can loop through all the rows and children etc.

Lots of possibility's with that, not too sure about the images though.

Hope this helps.

Noctine
How will curl help parse XML?
Pekka
You can extract XML data with CURL and do what you like with it (Save it to a DB for example), where the XML Data is on another domain. What he does with that data is up to him.At least that's what I understood from his post.
Noctine
@Noctine curl is a tool to make HTTP requests, but doesn't parse XML structures.
Pekka
Seemed to work when I wanted to loop through a load of child elements in an external XML document before.. but oh well.
Noctine
+1  A: 

This is what you need. Also, here's a tutorial.

Ruel