I now I can fopen a file and write XML.. this is easy enough, what I want to do it have a file which when called will write and an XML and display it in the same process... so for example if i went to myxml.php it would write it then display it without then having to go to myprintedxml.xml page... is this possible?
Writing XML file
<?php
// build $xml string as desired, then...
file_put_contents($filename, $xml);
header('Content-Type: text/plain');
echo $xml;