title: How do I create an XML file with php and have it prompt to download?
body: <p>I'm using domdocument to create an xml file:</p>
  
  <pre><code>$dom = new DOMDocument('1.0', 'iso-8859-1');
  echo $dom-&gt;saveXML();
  </code></pre>
  
  <p>When I click the link to this file, it simply displays it as an xml file. How do I prompt to download instead? Furthermore, how can I prompt to download it as 'backup_11_7_09.xml' (insert todays date and put it as xml) instead of the php file's real name which is 'backup.php'</p>