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

PHPBuilder.com:
Reading RSS feeds in PHP (Part 2)
Nov 03, 2005 @ 11:40:41

New from PHPBuilder.com today, in a continuation of this article, there's Part 2 of the "Reading RSS feeds in PHP" series.

This month's article continues on where we left off last time. Please read part one first if you haven't yet done so, as the code examples in this tutorial build upon what we created there.

To begin with, let's create two new rss feeds to read. We're going to combine them into one feed, and display them combined on one page, in the correct date order. These two sample feeds are loosely based on some of the feeds supplied by Independent Online. Note that unlike last month's simplified example, each article item has a publication date. We'll call the two feeds africa.rss and southafrica.rss.

They give you a sample RSS file to work with, and, using the script created in the last part, parse it into something we can use. From there, they integrate it with MySQL, dropping all of the content into a database you create. Then, they wrap it all up with some functionality to pull the content back out and display it on a page...

tagged:

Link:


Trending Topics: