Hi there,
Quote:
|
I would like to be able to scan a directory and put the directories found into a drop down list to pic from, is that possible to do using php?
|
Yes, you can certainly do this with PHP.
Quote:
|
I am thinking it can be done using an array. I am not that familiar with arrays, but am willing to learn.
|
You need to use Directory Handle, which is more like a cursor through your directory. You can, of course, put the dir names into an array for better control.
Since you are willing to learn, here's a great resource for this:
PHP.net Directory Functions
http://php.net/dir
My tip would be to use
readdir() in conjunction with
is_dir(). Good luck!