# Generate XML data on the fly for use in Flash

**URL:** https://forum.kirupa.com/t/generate-xml-data-on-the-fly-for-use-in-flash/244963
**Category:** flash
**Created:** [November 24, 2007, 5:07am UTC](https://forum.kirupa.com/t/generate-xml-data-on-the-fly-for-use-in-flash/244963 "2007-11-24T05:07:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![markmardon](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@markmardon](https://forum.kirupa.com/u/markmardon)
#### Post date: [November 24, 2007, 5:07am UTC](https://forum.kirupa.com/t/generate-xml-data-on-the-fly-for-use-in-flash/244963/1 "2007-11-24T05:07:58Z")

</div>

I have a php script that generates an XML file (a list of photos) from a mySQL database. I want to kick off this script every time a visitor wants to browse the photos. Note that I don’t need to read the data in at this point, I just want the script to run so that my XML file will be refreshed with the latest data. I then have my photo display component read the file to display the pictures. I’ve tried loadVars(), loadVariables() and getURL() with no success.

As info, the php script runs fine on it’s own and does generate a good XML file if I run it manually.

Thanks in advance!
