

P.S.
to dosc zlozony projekt, kilka zagniezdzonych folderow, na roznych poziomach.
<?php function dump($a) { } function iterateDir($path) { $di = new DirectoryIterator($path); foreach ($di as $k => $v) { // get extension // is svn dir $name = $v->getFilename(); $first == '.' ? $dupa = false : $dupa = true; // if is dir and not svn dir, iterate this dir;] if($v->isDir() && $dupa) { iterateDir($v->getPath() . '/' . $v->getFilename()); } // print filename with path, with php extenstion if($dupa && $v->isFile() && $ext == 'php') { $files[] = $v->getPathname(); //print $v->getPathname() . \"<br />n\"; } } return $files; } $files = iterateDir('./nOdin/in repos/'); $globalLines = 0; foreach($files as $file) { if($highest['count'] <= $countLines) { } if($shortest['count'] >= $countLines) { } $globalLines += $countLines; } ?>