RSS feed consolidation in PHP


I want to do something like the code below (consolidate several RSS feeds on a single page) but that is in ASP and uses XSL. I do NOT want to learn XSL..Nor do I want some RSS to HTML solution based on an external server.

While I don't know much PHP I figured that there should be a class that would just grab a feed and let me iterate over its contents.

Suggestions, recommendations, simple test code?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mutley2003Author Commented:
oops, forgot the ASP and XSL code
<!--  ======================================================
                  NEWS CONSOLIDATOR
                  This is originally from
Sub getXML(sourceFile)
     dim styleFile
     dim source, style
     styleFile = Server.MapPath("news.xsl")

     set source = Server.CreateObject("Msxml2.DomDocument")
     source.async = false
     source.setProperty "ServerHTTPRequest", true
     source.load CStr(sourceFile)

     set style = Server.CreateObject("Msxml2.DomDocument")
     style.async = false
     style.load styleFile

     source.transformNodeToObject style, Response
     set source = nothing
     set style = nothing
End Sub


response.write("Hello World!")
<hr />
<% getXML("") %>
<hr />
<% getXML("") %>
<hr />
<% getXML("") %>



<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="xml" encoding="iso-8859-1" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="*">
<table border="1" width="600" align="center">
<tr><td valign="top" align="center" class="title" bgcolor="silver" > 
<xsl:attribute name="href">
<xsl:value-of select="*[local-name()='channel']/*[local-name()='link']"/>
<xsl:attribute name="target">
<xsl:value-of select="*[local-name()='channel']/*[local-name()='title']" disable-output-escaping="yes"/>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:value-of select="*[local-name()='channel']/*[local-name()='lastBuildDate']"/>
</td></tr><tr><td valign="top" bgcolor="ghostwhite" class="headlines" > 
<xsl:for-each select="//*[local-name()='item']">
<xsl:attribute name="href">
<xsl:value-of select="*[local-name()='link']"/>
<xsl:attribute name="target">
<xsl:value-of select="*[local-name()='title']" disable-output-escaping="yes"/>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:value-of select="*[local-name()='description']" disable-output-escaping="yes"/>
<xsl:template match="/">
There are many rssreader classes around.

Pear has got its XML_RSS class:
Magpie also has one:

And there are many more.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mutley2003Author Commented:
thanks Roonaan .. that Magpie RssReader looks nice and easy .. just what I want

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.