# Load from PHP

**URL:** <https://forum.kirupa.com/t/load-from-php/99078>\
**Category:** Uncategorized\
**Created:** [January 14, 2004, 1:16pm UTC](https://forum.kirupa.com/t/load-from-php/99078 "2004-01-14T13:16:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monAmour](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@monAmour](https://forum.kirupa.com/u/monAmour)\
**Post date:** [January 14, 2004, 1:16pm UTC](https://forum.kirupa.com/t/load-from-php/99078/1 "2004-01-14T13:16:48Z")

</div>

Hi, I’m using a fully functional PHP script to read a couple of imagefilenames from a directory.  
Doing that I get a string printed looking like this:

```auto

&images=bgm_1.jpg,bgm_2.jpg,bgm_3.jpg,bgm_4.jpg,bgm_5.jpg,ethos_1.jpg,ethos_2.jpg,ethos_3.jpg

```

I’m trying to load this string into my flash movie using the AS lines below, making a list of the current imagefiles.  
But nothing is really happening and I don’t get any errors.  
What’s wrong? the PHP script is really working fine.

```auto

var myLv = new LoadVars();
myLv.load("http://www.mikaelbjorkefall.com/dev/flash/filetree/getTree.php");
myLv.onLoad = function() {
	myImages = myLv.images.split(",");
};

var outputStr = "";
for (i=0; i<myImages.length; i++) {
	outputStr += myImages*+"
";
}
_root.fileList.text = outputStr;

```

Thanks for your help!
