Subdir?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mleskine
Forum Newbie
Posts: 7
Joined: Fri Feb 14, 2003 6:44 am

Subdir?

Post by mleskine »

Hi, is there a function to check if some directory HAS subdirs? I have directories in an array and running through them foreach. So if anyone has done this someway, any clues would be nice.
thanks.

-M-
bionicdonkey
Forum Contributor
Posts: 132
Joined: Fri Jan 31, 2003 2:28 am
Location: Sydney, Australia
Contact:

Post by bionicdonkey »

you could check through all the objects in the directory and use is_dir() in an if statement to find if any of them are diretories
Post Reply