# Need help with a Kirupa.com tutorial

**URL:** <https://forum.kirupa.com/t/need-help-with-a-kirupa-com-tutorial/163235>\
**Category:** Uncategorized\
**Created:** [September 20, 2005, 9:47pm UTC](https://forum.kirupa.com/t/need-help-with-a-kirupa-com-tutorial/163235 "2005-09-20T21:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [September 20, 2005, 9:47pm UTC](https://forum.kirupa.com/t/need-help-with-a-kirupa-com-tutorial/163235/1 "2005-09-20T21:47:16Z")

</div>

I am trying to create a file browser for my own but based on a tutorial found in this URL: [http://www.kirupa.com/developer/mx2…ernal\_array.htm](http://../developer/mx2004/external_array.htm) .

Now, i have one prob. If i use the url for the php specified in the tutorial and point it to kirupa everything works great. Problems have reach when i transfer the php file without change it any bit to my own server and i just uploaded some jpg´s to the same folder at my server. In here. [http://www.beedigital.net/testes/file.php](http://www.beedigital.net/testes/file.php)

After this although i had give permissions to the file when trying to load the file to Flash it won’t trace the jpg´s i have in there. But if i trace the (lv) it traces exactly how it does with kirupa file except the files are different. After that any file traces undefined.

What is the prob? Do i need something else on my server? Do i need some kind of server side software installed for this to work?

The fla for this has only the following code:

```auto

files = new Array();
lv = new LoadVars();
lv.onLoad = function() {
	fl = this.filelist;
	files = fl.split(",");
	c = files.length-1;
	for (i=0; i<c; i++) {
		trace(files*);
	}
};
lv.load("http://www.beedigital.net/testes/file.php");
//lv.load("http://www.kirupa.com/developer/mx2004/pg/files.php"); 
// like this it will work. loading in kirupa

```

And the php is :

```php

<?php
if ($handle = opendir('.')) {

echo "filelist=";
while (false !== ($file = readdir($handle))) {

$ext = substr(strrchr($file, "."), 1);
if ($file != "." && $file != ".." && $ext == "jpg") {

echo "$file";
echo ",";

}

}
closedir($handle);
echo "null";

}
?>

```

I really appreciate some help on this.

Many thanks.
