RSS feed issues

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 4, 2019   (RSS)

By daniel - January 3, 2019

Hi willydoit,

It looks like the primary issue is that you have saved this code in a .xml file, which the web server is not parsing for PHP code (you can see the un-executed PHP if you view source on the file from a browser). The easiest way to solve this issue is to simply rename the file as .php. The header() function that sets the content type will let the browser know to read it as an XML file, despite the PHP file extension.

Additionally, I see that you have a duplicate header() call at the top of the file; this may also cause some issues, so I'd recommend removing it.

I hope this helps!

Thanks,

Daniel
Technical Lead
interactivetools.com

Hi Daniel,

Thanks, that sorted the issue, beginning to think it's time I was put out to pasture :-)