Excellent script! and very useful, usually I check php scripts for ending spaces manually, to avoid 'headers are already sent ..' error messages but with your script is much faster and convenient!
Although I am checking if any of these files are related to your module, I will fix them and run the script again.
/admin/downloads_manager.php Yes
/admin/orders.php Yes
/admin/quickbooks_download.php Yes
/admin/track_fedex.php Yes
/includes/templates/template_default/common/html_header.php Yes
/includes/templates/template_default/common/tpl_columnar_display.php Yes
Total files - 1072
Bad files - 6
ok ... all the above files are fixed the script scanned 1072 files and found no errors.
BTW the feeds are still showing the same error messages, and the source code starts with link tags ... instead of the xml declaration.
Please note I don't have any SEO contributions installed, that might affect the way the standard function works.
line 1, column 0: Undefined root element: link [help]
<link rel="alternate" type="application/rss+xml" title="RSS Specials Feed" h ...
line 2, column 0: XML parsing error: <unknown>:2:0: junk after document element [help]
<link rel="alternate" type="application/rss+xml" title="RSS New Products Fee ...
BTW I am using Zen Cart 1.3.8a and your latest RSS2 Feed 2.1.4 update, installed from scratch and read all the threads to make the modifications suggested.
As far as that, my only modifications were to the templates, affecting only CSS, I also changed strip tags setting to true in order to avoid XHTML tags. I understand many of these tags are not present in XML, so they have to be either encoded in UTF-8, or stripped altogether.