# PHP or PHP/XML to drive gallery contents?

**URL:** <https://forum.kirupa.com/t/php-or-php-xml-to-drive-gallery-contents/180737>\
**Category:** flash\
**Created:** [March 3, 2006, 3:39am UTC](https://forum.kirupa.com/t/php-or-php-xml-to-drive-gallery-contents/180737 "2006-03-03T03:39:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindart](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@blindart](https://forum.kirupa.com/u/blindart)\
**Post date:** [March 3, 2006, 3:39am UTC](https://forum.kirupa.com/t/php-or-php-xml-to-drive-gallery-contents/180737/1 "2006-03-03T03:39:54Z")

</div>

Basically, I’ve got myself a gallery which is generated from the contents of an XML file. (I just followed [this](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm) excellent tut!):beam:

I’ve decided that its too much hassle to update the XML file everytime a new image is added to the directory, so I’m thinking about using PHP to build the XML file. That means that going from PHP-\>XML-\>Flash. Can I just go straight from PHP-\>Flash? All I want to do is get a list of files in /directory\_x. Are there any obvious benefits/drawbacks to either method?

Thanks for any help! :toad:
