PHP list directory
PHP list directory
- Started
- Last post
- 5 Responses
- JamesEngage
Anyone know where I cna find a script to list a directory, or ideally list a directory into Flash? Or is there another simple way of doing it?
- rasko40
ask Bonseff, he has one.
- JamesEngage0
cool... thank you for that!
- chimchim0
$dir = opendir('yourdirectory');
while (false !== ($file = readdir($dir))) {
echo $file;
}
closedir($dir);just wrap the entire thing to spit out xml...in flash call the script with a load method of an xml object.
myXML.load(path + "scandir.php");
- JamesEngage0
thanks that one is cool too... infact nearly done what I wanted to already... will show you when it is done (don't get too excited)