I'm trying to generate a rss feed xml file output in a file called:
1. my_feed.xml -> doesn't work
2. my_feed.xml.php -> works (kinda)
How can I get the php tags to be recognised so that the code gets parsed as PHP? I'm dynamically pulling data from a database to be output as xml for an RSS feed. I've read several articles and tutorials and they all discuss either reading an existing xml file to be output using PHP or writing a new xml file on the server using PHP. What I'm trying to do is create one on the fly -> Is it possible?
I'm assuming there might be something I need to set up on my server (Apache) - what? I really do not want to use the .php extention for a xml file.
1. As soon as I add php tags anywhere in the document
<?php ?>
they get parsed as <?php ?> and do not go through the php translator.
2. If I use this option I can get a rss feed reader to read my file but can't see nothing in the browser.
Help!