1) { printf($more,$nb); } } function scanDir($dir) { global $cpt; if (@is_dir($dir)) { if ($dh = @opendir($dir)) { while ($file = @readdir($dh)) { if ( ($file != ".") && ($file != "..") && (!@strstr($file, ".TN__")) ) { if (@is_dir("$dir/$file")) { scanDir("$dir/$file"); } else { $cpt++; } } } } @closedir($dh); } return $cpt; } ?>