View Single Post
Old 10-05-2012, 05:15 PM   PM User | #6
kbluhm
Senior Coder

 
kbluhm's Avatar
 
Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 1,502
Thanks: 2
Thanked 258 Times in 254 Posts
kbluhm will become famous soon enough
Another solution, once you have a folder path... this will count the number of folders immediately within that folder (non-recursive):
PHP Code:
$sub_directories       globrealpath$directory ) . '/*'GLOB_ONLYDIR );
$sub_directories_count count$sub_directories ); 
__________________
ZCE

Last edited by kbluhm; 10-05-2012 at 05:39 PM..
kbluhm is offline   Reply With Quote
Users who have thanked kbluhm for this post:
LJackson (10-05-2012)