# Loading file names into flash with php

**URL:** <https://forum.kirupa.com/t/loading-file-names-into-flash-with-php/45931>\
**Category:** Uncategorized\
**Created:** [March 19, 2004, 12:40pm UTC](https://forum.kirupa.com/t/loading-file-names-into-flash-with-php/45931 "2004-03-19T12:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icube](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@icube](https://forum.kirupa.com/u/icube)\
**Post date:** [March 19, 2004, 12:40pm UTC](https://forum.kirupa.com/t/loading-file-names-into-flash-with-php/45931/1 "2004-03-19T12:40:06Z")

</div>

ok… guys need ur help

i’m building a photography website… i need to read the jpg folder which read the files inside the folder then send the file names into flash so that i can load the respective .jpg file when the user clicks a button for it…

i’ve got the scripting done for the php part where the script reads the folder and echo out the file names…

now the question is… how do i get these file names in flash? i know using the loadVars object… but i want these file names to be loaded into an array if flash… cos the buttons that direct to the jpg files are dynamic… i’m thinking of using a 2-dimensional array… one column to store a number reference and the other column to store the jpg file name…

do i create an array in php and send it into flash(dunno whether issit possible) OR send the “&fName=$fName&…&” string and then split it into the 2D array in flash…?
