RSS
 

XML Output From PHP

28 Jul

Just a quick one. If you want to output XML from your PHP page you need to set the Headers correctly.

Here is the code you need to include, and it has to be before anything else is printed.

<?php
   header ("Content-Type:text/xml");
?>
 
 

Tags: , ,

Leave a Reply