Comments on Easy RSS Syndication with MagpieRSS

Easy RSS Syndication with MagpieRSS MagpieRSS, affectionately known as Magpie, is an RSS and Atom parser for PHP. It allows you to display the newest articles from websites with RSS or Atom feeds on your own site. This is a great way to add new, fresh, and relevant information to your site. It parses RSS 0.9, RSS 1.0, and has some support for RSS 2.0 as well as Atom 0.3.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: jagro

Adding examples where MagpieRSS is being used would be helpful!

One example is Feed on feeds, which uses MagpieRSS to handle RSS feeds and then inserts them into a database. I use it everyday and find it very useful. http://feedonfeeds.com/ or http://sourceforge.net/projects/feedonfeeds/

By:

Good howto! However, the syntax of the echo command seems to be a bit incorrect. When to use quotation marks and when single quotes? The example didn't work for me until I changed this:

echo "<p><a href="$href">$title</a><br>";

to the following:

echo '<p><a href="$href">';echo "$title";echo '</a><br>';

By: Brandon

I also encountered this, but the polished solution would be to escape the quotation character so it's echoed correctly:

 echo "<p><a href="$href">$title</a><br>";

   to

 echo "<p><a href=\"$href\">$title</a><br>";

 

The howto is helpful, and so is Wildeh's input!


 --B

By: Taylor

I have done everything on this tutorial, but when I try to include the line $rss = fetch_rss("http://www.rssmix.com/u/11815366/rss.xml"); it says "undefined funciton fetch_rss" so I was unsure on if there was a way to fix this? I am familiar with HTML and CSS, but new to PHP so any help would be appreciated!