I'm using domdocument to create an xml file:
$dom = new DOMDocument('1.0', 'iso-8859-1');
echo $dom->saveXML();
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'