By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,968 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,968 IT Pros & Developers. It's quick & easy.

How can the user select multiple files from a folder?

mikek12004
100+
P: 200
I have a form in which I want the user to select multiple files from a folder then I want to take the name of these and create a xml file (which is a playlist of songs for a player in my main page). I could think of a upload button (though the files are already in the folder of the server so no need to upload them again). The thing is that the user already has FTP access to the folder and can upload any file he wants, now I have to find a way to choose some of the files in order for me to create the xml file. Is there a command in PHP for selecting all the filenames in a folder or something like that?
Oct 29 '08 #1
Share this Question
Share on Google+
1 Reply


Markus
Expert 5K+
P: 6,050
You could use glob() to find all the files in a folder, assuming that these files are on the server and not the client's machine.
Oct 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.