@grumpyoldtechsFeb 28.2007 — #in the words of blue peter heres one i made earlier: [code=php] <? require_once "connection.php"; header("Content-Type: text/xml"); echo '<?xml version="1.0" encoding="UTF-8"?>'." n"; /* echo '<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="rss.xsl"?>'." n"; */ ?> <rss version="2.0">
the file extension means nothing if you look at the script i change the mimi type to text/xml.
For php to execute the script the extension does however need to be .php (depending on your servers configuration)
so if your running on an apache server you can have this in a .htaccess file in your website root: <i> </i>Options +FollowSymLinks RewriteEngine on RewriteRule rss.xml$ rss.php
for rss feeds to work you don't have to have a .xml file extension just a xml mimi type.