<?php header("Content-type: text/xml"); echo " <?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> ... </channel> </rss>"; ?>