php - count and echo the number of non empty folders/directories -
i want search search through several directories/folders , count , echo number of ones have non-empty subfolders/subdirectories. know how count number of files single subdirectory below. however, not find on counting global number of directories have files.
$dir = '../location/' . $nameofadirectory .'/subdir/'; $count = count(glob($dir . "*")); echo $count;
Comments
Post a Comment