Output XML from Flash

Hey Guys,

I dont know if this is even possible…can I use PHP to create an XML file called AGConfig.xml on a server? AGConfig.xml is a file that is used by 2 different applications…there is a config swf and a main app swf…initially you run the config swf which takes in MySQL Login information…and a event name…when you load the config swf all the fields are blank (whether or not the AGConfig.xml exists)…what I want to do is write an XML file on the server…I am wondering if its possible to do this using PHP? What I have found is that you can definitely save it to your local drive…but is it possible to output an XML file on a server? For example…my php file and flash app files are at www.somesite.com/test/ and if i run www.somesite.com/test/genXML.php...I want it to create an xml file that is accessible at www.somesite.com/test/someXML.xml

Is this possible? If so, how can it be done?

Desired XML output:


<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<ns>
    <n
        databaseServer = "something"
        databaseName = "somethingElse"
        databaseUserName = "me"
        databasePassword = "myPass"
        showName = "new"
    />
</ns>

Paul