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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -