Jump to content

Basic Rss Parser?


ben03

Recommended Posts

Hi chaps, I am hoping someone can recommend me a simple to implement script for displaying a blogger feed in a page? I am needing one that I can just pop in and set how many posts to display and the 1st so many characters of the main content. Preferably one with a demo or step by step as am new to this! Using a javascript one currently which and lumpy and horrible so looking for an alternative! Thanks.

Link to comment
Share on other sites

DOMDocument is probably the right direction; there is also the SimpleXML parser if you want an alternative. A full overview of the various XML-handling features in PHP can be found here. If you use these you don't need to start from scratch, just use the functions they provide.

Link to comment
Share on other sites

ingolme already left a pointer for you. rss feed is xml page. you can use domdocument to load that xml doc and then parse it.. check above link more appropiately check http://www.php.net/manual/en/domdocument.construct.php for construct dom objectfor load the xml dochttp://www.php.net/manual/en/domdocument.load.php both page holds some exapmles also. how to use that

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...