PDA

View Full Version : just a question


Selena
March 4th, 2007, 08:38 PM
You know how in php there is something you can do like a $file variable that can call to all the files in a specific directory.
Like using the $file variable to display all the images in one folder on a page?

Well is there any way to do something similar with a $directory variable that can call to all the subdirectories in a specific directory?

If that makes any sense at all.

Sergio
March 4th, 2007, 08:42 PM
It makes sense to me. I just don't know how to do it. I could have sworn I read something about it like 10 minutes ago in a php book I own.

nsmchris
March 4th, 2007, 08:47 PM
I moded the free turnkey to do something like that. google "get_dirlist php" and you will find the base function. It returns everything in a folder (subfolder and files) then just parse out the info you want, such as first level folders.

Chris...

cdog
March 4th, 2007, 08:47 PM
doh i completely misread your post

Selena
March 4th, 2007, 08:52 PM
Thanks, chris, i'll play around with that for a little while, and i'm trying to mod the free turnkey as well, and you probably modded it to do the same thing i'm trying to do.