Main Content
Reading a news or blog feed (RSS) in your PHP page Archive - Originally posted on "The Horse's Mouth" - 2005-08-12 07:51:16 - Graham Ellis
If you want to quote the latest articles from an RSS (XML based) news feed on your site, is it difficult? No - it can easily be programmed in PHP. I was exploring this yesterday and have the source code showing just how easy it is in our training resources.
Want to try it out? This link runs the script in our resource centre 'against' The Horse's Mouth
Truly, the answer "There's a function to do that" really does seem to apply to PHP coding!
Some other articles
H112 - Further Web Page and Network Handling Moving from mysql to mysqli - simple worked example Passing variable between PHP pages - hidden fields, cookies and sessions Multiple page web applications - maintaining state - PHP Telling which ServerAlias your visitor used - useful during merging domains Easy session example in PHP - keeping each customers data apart 3 digit HTTP status codes - what are they, which are most common, which should be a concern? Sending out an email containing HTML from within a PHP page Downloading a report from the web for further local analysis Uploading a document or image to its own URL via a browser How to build a test harness into your PHP Shipping a test harness with your class in PHP http, https and ajp - comparison and choice Downloading data for use in Excel (from PHP / MySQL) Keeping staff up to date on hotel room status Script to present commonly used images - PHP PHP / Web 2 logging Single login and single threaded models - Java and PHP Copyright and theft of images, bandwidth and members. Simple page password protection - PHP .php or .html extension? Morally Static Pages PHP header() function - uses and new restrictions Updating a page strictly every minute (PHP, Perl) Improving searches - from OR to AND? PHP Image upload script Passing GET parameters through Apache mod_rewrite Global, Superglobal, Session variables - scope and persistance in PHP Of course I'll tell you by email Image maps for navigation - a straightforward example Hot answers in PHP Finding the language preference of a web site visitor Adding PHP tags to an old cgi program PHP - setting sort order with an associative array Using PHP to output images, XML, Style sheets, etc Morning image, afternoon image Daily Image Santafied Setting the file name for a downloaded document Accessing a page via POST from within a PHP script Server side scripting of styles to suit the browser Caching an XML feed This article What brings people to my web site? Time calculation in PHP Sudoku helper or sudoku cheat Spotting a denial of service attack What language is this written in? When to use Frames G905 - Blogging and Blog Administration The technical article feed continues - personal updates more proactive on Facebook now! Moderation - and the tendency to over-moderate The Horse is back! Has your Twitter feed stopped working? Switching to their new API 9 years, and 4000 articles on The five oldest blogs and the horses mouth Microblogging - what I should have tweeted in the last 48 hours Links for social media, microblogs and business networking How to add a customised twitter feed to your site Twitter - the special use of @ # and http: in tweets The legal considerations of your web presence - revisited Where have all the bloggers gone? Going off at a tangent, for a ramble Microblogging services - Plurk, Twitter, Jaiku and more Blogging accuracy - open invitation for any corrections Four aspects - Chamber, Transport, Courses and Hotel Copy writing - allowing for the cut 2000th article - Remember the background and basics From spam to mod_alias - finding resources A Fresh horse In answer to 'am I glad I started a blog' ... One Thousand Posts and still going strong Making pages clearer - easy Disability Discrimination Act Compliance Both ends of the animal Comment, please! Caching an XML feed This article Horse's Mouth is a year old Moderating wiki, blog, and forum contributions Chicken soup without the religion I'm not blogging it Feedback as lifeblood The confidence to allow public comments Who am I? Blogs come of age A comment on comments Too technical? Wanted: More hours in the day Blog v Forum First Jottings