All pastes #927656 Raw Edit

splat

public text v1 · immutable
·published 2008-03-04 13:53 UTC
rendered paste body
<?php
$numdirs = 0;
if ($handle = opendir('G:\\WEB\\overclockers')) {
   while (false !== ($file = readdir($handle))) {
        if(is_dir($file)) {
	  $numdirs++;
        }
   }
}
echo "<p>Number of Directories: " . $numdirs . "</p>";
?>