Save generated XML to the server
Posted: Tue Feb 06, 2007 1:17 pm
I want to be able to generate an XML document, and then save it as a .xml file to the server. In general, here's what I'm trying to produce:
... and so on ...
After the xml is complete, I want to be able to save $xml_code as images.xml and have it uploaded to my server.
Many thanks are in advance for helping me solve my problem.
Thanks.
Code: Select all
$xml_code = '<?xml version="1.0" encoding="UTF-8"?>';
$xml_code = $xml_code . '<gallery>';
$xml_code = $xml_code . '<album id="bouldering" title="Bouldering" lgPath="comphotos/bouldering/">';
$xml_code = $xml_code . '<img src="125Bouldering04.jpg" caption="This where your photo caption would be" />';After the xml is complete, I want to be able to save $xml_code as images.xml and have it uploaded to my server.
Many thanks are in advance for helping me solve my problem.
Thanks.