Skip to content

Instantly share code, notes, and snippets.

@shrop
Created December 9, 2010 01:41
Show Gist options
  • Save shrop/734210 to your computer and use it in GitHub Desktop.
Save shrop/734210 to your computer and use it in GitHub Desktop.
Header for printing XML with PHP
<?php
header('Content-Type: text/xml');
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment