News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

TotalPHP.com:
How to Read an RSS Feed with PHP 5
April 22, 2009 @ 11:15:16

New on the TotalPHP blog today is this article talking about reading RSS feeds with PHP (more specifically with SimpleXML).

PHP 5's ability to read XML files is fantastically easy to use. In the past it was possible but it required quite a bit of long winded code to get any where. PHP 5's SimpleXmlElement function makes working with XML a breeze, and with much less code too!

They include a script as an example - five lines to completely parse and pull the title and link information out of the remote RSS file. The example creates a SimpleXML object using the feed's URL and makes each element inside accessible as an object (that can be looped through and properties can be checked on).

0 comments voice your opinion now!
title link object example simplexml php5 read rss


blog comments powered by Disqus

Similar Posts

FCHouse.com: Debugging PHP5 with Eclipse PDT under OSX: a piece of cake!

DevShed: Introducing Static Members and Methods in PHP 5 (Part 1)

Sean Coates' Blog: PHP Pie?

Ivo Jansch's Blog: Validating OCL constraints in PHP objects

Dagfinn Reiersol's Blog: Real programming with PHP 5.3 (part 3): Links


Community Events





Don't see your event here?
Let us know!


release community language series voicesoftheelephpant framework composer list artisanfiles conference version library symfony security laravel interview podcast tool opinion introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework