>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

How to create an Ajax RSS reader with PHP - feed rss xsl feeds xml function php display

 
Registered tutorials: 501
Registered Users: 33127



Rating: 0 out of 0 votes cast


  
Category: Ajax and PHP

Tags Map

active add ajax alert application apply array articles attribute aug background based block build catch class clear code color constructor container content continue create creates crssreader data decoration defined description display displayed displayerror div document documentgetelementbyid echo element errno error feed feedcontainer feedlist feeds file font form formatted fri full function getfeed getformattedxml header home href html http id indexphp instance ip item left li link links list load loading loop main margin message msxmlxmlhttp mxml mxsl named news number object order output padding page params php post proc public px read reader reply request requireonce response retrieval retrieve retrieved retrieves return rss rssreadercss rssreaderjs rssreaderphp script select server set showerrors side simplexml simplexmlloadfile solid standard store string structure styledisplay stylesheet szfeed text title transformation transformtoxml true type url urldecode user var version work xml xmlhttp xmlhttpreadystate xmlhttprequest xsl xslt xsltprocessor

Keyword Cloud Navigation Map

How to create an Ajax RSS reader with PHP

Digg this   Post to del.icio.us

Abstract: This tutorial demonstrates how to write an Ajax-enabled RSS Reader using PHP

RSS is a widely used XML-based standard, used to exchange information between applications on the Internet. One of the great advantages of XML is that it is plain text, thus easily read by any application. RSS feeds can be viewed as plain text files, but it doesn't make much sense to use them like that, as they are meant to be read by specialized software that generates web content based on their data. In order to better understand RSS, we need to see what lies underneath the name; the RSS document structure, that is.

The RSS Document Structure

The first version of RSS was created in 1999. This is known as version 0.9. Since then it has evolved to the current 2.0.1 version, which has been frozen by the development community, as future development is expected to be done under a different name.
A typical RSS feed might look like this:

<rss version="2.0">
<channel>
<title>CNN.com</title>
<link>http://www.example.org</link>
<description>A short description of this feed</description>

<language>en</language>
<pubDate>Fri, 11 Aug 2006 07:56:23 EDT</pubDate>

<item>
<title>Catchy Title</title>
<link>http://www.example.org/2005/11/catchy-title.html</link>
<description>
The description can hold any content you wish, including XHTML.
</description>
<pubDate> Fri, 11 Aug 2006 07:55:28 EDT</pubDate>

</item>
<item>
<title>Another Catchy Title</title>
<link>http://www.example.org/2005/11/another-catchy-title.html</link>
<description>
The description can hold any content you wish, including XHTML.
</description>

<pubDate> Fri, 11 Aug 2006 07:55:28 EDT</pubDate>

</item>
</chanel>
</rss>

The feed may contain any number of items, each item holding different news or blog entries or whatever content you wish to store.

Implementing the AJAX RSS Reader

In order for this exercise to function correctly, you need to enable XSL support in your PHP installation. In the exercise that will follow we will build our own AJAX-enabled RSS reader application. The main characteristics for the application are:


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 85
Unique Hits: 73


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0.3 0.3 1.1 1.3
Current 0 0 0 0 0 0
Previous 0 0 0 0 1 1
Nov 29 0 0 0 0 3 3
Nov 28 0 0 0 0 3 3
Nov 27 0 0 0 0 0 0
Nov 26 0 0 0 0 1 2
Nov 25 0 0 1 1 0 0
Nov 24 0 0 0 0 0 0
Nov 23 0 0 1 1 1 2
Nov 22 0 0 1 1 2 2
Highest 2 4 5 6 9 11


Script Execution Time: 1.66072 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2