# Php to flash

**URL:** https://forum.kirupa.com/t/php-to-flash/171114
**Category:** Uncategorized
**Created:** [December 1, 2005, 10:36pm UTC](https://forum.kirupa.com/t/php-to-flash/171114 "2005-12-01T22:36:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nexx](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@nexx](https://forum.kirupa.com/u/nexx)
#### Post date: [December 1, 2005, 10:36pm UTC](https://forum.kirupa.com/t/php-to-flash/171114/1 "2005-12-01T22:36:20Z")

</div>

I have an error doing one of the tutorials on the website

trying to pass an ‘echoed’ data from PHP to FLASH array, Im sure its fine on PHP side, but in flash I got an error:

Error opening URL  
“[images/pics/test/undefined](file:///C|/phpdev/www/vfourorg3/images/pics/testing/undefined)”

Could anyone help pls.

```auto

files = new Array(); 
lv = new LoadVars(); 
lv.onLoad = function() { 
fl = this.flashVar; 
files = fl.split(","); 
c = files.length-1; 
for (i=0; i<c; i++) { 
this.pArray = files*; // fill array with variables
} 
};
lV.load('http://localhost/test4.php');

this.pathToPics = "images/pics/test/"; //

```
