Jump to content
Sign in to follow this  
ben03

Basic Rss Parser?

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.

Share this post


Link to post
Share on other sites

You can use DOMDocument to parse the RSS feed.

Share this post


Link to post
Share on other sites

You could try to learn how to do it yourself, or you could hire somebody else to do it for you. Our intention here is only to teach, not to work for you.

Share this post


Link to post
Share on other sites

or point me in the right direction. Thanks, will look around elsewhere for some tutorials...

Edited by ben03

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...