I have a PHP file that takes the news feed from my database and extracts it and places it into xml code to show as an RSS feed. To make it like so, I changed the header to
Code: Select all
header("Content-type: application/rss+xml; charset=ISO-8859-1");
When I comment this out, it runs ok, but displays as a web page. When it's in use, it forces the browser to download the file. Why is it doing this?