ben03 Posted November 11, 2011 Share Posted November 11, 2011 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 More sharing options...
Synook Posted November 11, 2011 Share Posted November 11, 2011 You can use DOMDocument to parse the RSS feed. Link to comment Share on other sites More sharing options...
ben03 Posted November 11, 2011 Author Share Posted November 11, 2011 is there an example that i could copy/paste off? I wouldn't know where to start from scratch. Link to comment Share on other sites More sharing options...
Ingolme Posted November 11, 2011 Share Posted November 11, 2011 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. Link to comment Share on other sites More sharing options...
ben03 Posted November 11, 2011 Author Share Posted November 11, 2011 or point me in the right direction. Thanks, will look around elsewhere for some tutorials... Link to comment Share on other sites More sharing options...
Synook Posted November 11, 2011 Share Posted November 11, 2011 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 More sharing options...
birbal Posted November 11, 2011 Share Posted November 11, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.