I am using a php script to create an xml file that I will use to populate a list box in Flash.
Here is a working example of what I want it be like at the end of the day
http://www.ericd.net/new_css/data_filter/
I can do the above link deal no problem in in flash. But I have to manually hard code the xml file into it....
I was hoping I could write a script similar to the one posted here
http://studioauditions.com/audio/microphones/ADK/ADK_Vienna_II/tracks/songList.xml.php
which does exactly what I want it to do, but only for the current local directory.
I have a file here -
http://studioauditions.com/audio/test.php which can generate the file structure of whole directory its in....but I am having trouble combining the two files to achieve my goal.
Can anyone help me with this?
I am going to post the scripts here with their respective file names...
Here is the ID3 script for stripping out the ID3 tags
http://studioauditions.com/audio/microphones/ADK/ADK_Vienna_II/tracks/id3v2.php
Here is the arrays.php referenced
http://studioauditions.com/audio/microphones/ADK/ADK_Vienna_II/tracks/arrays.php
and finally
http://studioauditions.com/audio/microphones/ADK/ADK_Vienna_II/tracks/songList.xml.php
This is the xml that flash calls on....it works perfectly, but only does it locally.
(view source to see the xml file)
So if I could get a file to exactly this, but not have to have it be in the tracks folder of the deep path there...
like
studioauditions.com/audio/songList.xml.php
and have it find mp3s in all the sub-folders
studioauditions.com/audio/folder1/folder2/*.mp3
studioauditions.com/audio/folder3/mp3s
etc...
I think I need to call the functions recursively?? but I dont know enough about PHP at all to do this.
I am a hack.
Can someone rewrite the code in these three php files so that they can do what they do for a whole directory and its sub-directorys - like the test.php above...
???
I tried posting the actual php code in this thread but it was 63,000 characters long and it would not let me?
see below
"Help Obi-wan Kenobe, you're my only hope."