The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

RSS Feed Image Just Doesn't Work

I don't really know what's going on here. I'm using self-hosted WordPress 2.6.1 and am trying to edit the feed-rss.php and feed-rss2.php files to allow for an RSS Favicon. The code I'm inserting is as follows:

This is dropped inside the <channel> right before the <item> tag begins. I have tried hard coding this and using a WP plugin and cannot seem to get the stupid image to show up. I've tried using a .png and a .jpg image and still it doesn't work. I'm pretty much at a loss here. Hopefully someone can help.

As you can see, no image tag for the favicon. I have the "favicon.ico" file (named favicon, not rss or anything else, and not jpg, gif, or png, but ico), in the site's top level public directory. The feedreader (and browsers to site pages) find it and use it "automatically" although for pages I also use a

RSS_PHP is a RSS Parser and XML Parser for PHP 5+, utilising the DOM to parse any valid XML Document including RSS, with provisional support for ATOM feeds.

This RSS Parser was created to be as simple as possible. Here's a working example which will parse a full RSS feed, it'll also automatically convert the XML Document to UTF-8 from any other encoding:
<?php