# Output XML from Flash

**URL:** https://forum.kirupa.com/t/output-xml-from-flash/270418
**Category:** flash
**Created:** [September 9, 2008, 6:55pm UTC](https://forum.kirupa.com/t/output-xml-from-flash/270418 "2008-09-09T18:55:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paulcybulski](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@paulcybulski](https://forum.kirupa.com/u/paulcybulski)
#### Post date: [September 9, 2008, 6:55pm UTC](https://forum.kirupa.com/t/output-xml-from-flash/270418/1 "2008-09-09T18:55:20Z")

</div>

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/](http://www.somesite.com/test/) and if i run [www.somesite.com/test/genXML.php...I](http://www.somesite.com/test/genXML.php...I) want it to create an xml file that is accessible at [www.somesite.com/test/someXML.xml](http://www.somesite.com/test/someXML.xml)

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

Desired XML output:

```auto

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

```

Paul
