Hello,
I am developing a PHP/MySQL project and as part of my initial setup and configuration scripts, the users can select a skin for the application, and a variable value ($skin) is updated to set the current skin, this works ok on it's own, but currently the user must manually type the skin name in a free-text box.
Ideally this needs to be a drop-down option box, and I would like this to be populated by listing the sub-folders within the '/skins' folder, so that it's always up to date. The folder structure looks like this:
/skins
/skins/skin1
/skins/skin2
/skins/skin3
How can I use PHP to generate a list of the current sub-directories in 'skins' and populate the drop-down list?
thanks, Jonathan