Wednesday, November 02, 2005

Creating a Custom RSS Feed Aggregator

Creating a Custom RSS Feed Aggregator

Creating a Custom RSS Feed Aggregator

By W. Jason Gilmore

Go to page: Prev 1 2

The PHP Script

The final task is to create the script that will display the user's chosen RSS feeds. This script, titled myrss.php, is surprisingly simple, consisting of just two main components:

* Login: The user will need to log in to view his customized feeds. This is accomplished by using a simple form and some logic that will confirm the supplied e-mail address and password.
* RSS Aggregation and Delivery: Assuming a valid login (or valid session; see next paragraph), we'll use the Magpie RSS Parser to display the user's chosen RSS feeds.

To save users the hassle of having to repeatedly log in every time they need an RSS "fix," I make use of PHP's session-handling feature. Once successfully logged in, the user's unique identifier is stored as a session variable for later retrieval. Keep in mind that the storage duration is entirely dependent upon how your PHP installation's session functionality is configured.

No comments: