# Php in flash

**URL:** <https://forum.kirupa.com/t/php-in-flash/160962>\
**Category:** Uncategorized\
**Created:** [August 30, 2005, 11:39pm UTC](https://forum.kirupa.com/t/php-in-flash/160962 "2005-08-30T23:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gam99](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gam99](https://forum.kirupa.com/u/gam99)\
**Post date:** [August 30, 2005, 11:39pm UTC](https://forum.kirupa.com/t/php-in-flash/160962/1 "2005-08-30T23:39:35Z")

</div>

Hi, I have set up a PHP script that reads the contents of a specified directory and outputs it like: pic1.jpg, pic2.jpg, pic3.jpg etc…

I don’t have much experience with actionscript, so I was wondering how I can get flash to load this PHP script and load the returned data into an array like: var img\_array=[“pic1.jpg”, “pic2.jpg”, “pic3.jpg”];

So basically I want to read a directory and load the data into flash. Can anyone help or suggest the best way to doing it?
