Create PHP DOM xml file and create a save file link/prompt without writing the file to the server wh
- by Reed Richards
I've created a PHP DOM xml piece and saved it to a string like this:
<?php
// create a new XML document
$doc = new DomDocument('1.0');
...
...
...
$xmldata = $doc->saveXML();
?>
Now I can't use the headers to send a file download prompt and I can't write the file to the server, or rather I don't want the file laying around on it.
Something like a save this file link or a download prompt would be good. How do I do it?