# Can loadVariables load directories?

**URL:** <https://forum.kirupa.com/t/can-loadvariables-load-directories/102126>\
**Category:** Uncategorized\
**Created:** [February 20, 2004, 1:24am UTC](https://forum.kirupa.com/t/can-loadvariables-load-directories/102126 "2004-02-20T01:24:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iroqfox](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@iroqfox](https://forum.kirupa.com/u/iroqfox)\
**Post date:** [February 20, 2004, 1:24am UTC](https://forum.kirupa.com/t/can-loadvariables-load-directories/102126/1 "2004-02-20T01:24:37Z")

</div>

I hope this has not been posted (which with my luck it has), but I hope someone knows if a directory can be opened using loadVariables and then placed into an array or loop. I know files can be loaded individually, but I want to be able to see all the files using PHP and my .swf file. I hope this makes sense because I am some what lost. Thanks for any help. ^^

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2004, 5:23am UTC](https://forum.kirupa.com/t/can-loadvariables-load-directories/102126/2 "2004-02-20T05:23:17Z")

</div>

i dont know anything bout php but an easy way out could be writing the filenames on a txt or xml, load it and then load the files from the directory

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2004, 5:48pm UTC](https://forum.kirupa.com/t/can-loadvariables-load-directories/102126/3 "2004-02-20T17:48:38Z")

</div>

That is a great approach flash4food. I will try it out later today. I also found that I could read the files in a directory into an array using PHP then use the implode PHP function to send the array to flash as a string then use String.split in my .swf file to accept the it. I hope it works. If you find anything else that is helpful please post it. Thank you again 🙂
