szukam programu ktory zliczy mi lnijki kodu w moim cmsie, a ze jest to 0,5 mb kodu i sporo plikow to zalezy mi na automacie
znacie cos takiego?
z gory thx..
<?php function recursiveDir( $sDir, &$iFiles, &$iLines, &$iChars) { foreach( new DirectoryIterator($sDir) as $f) { $sNewDir = $sDir.'/'.$f; recursiveDir( $sNewDir, $iFiles, $iLines, $iChars ); } else { $iFiles++; // Powinno byc n } } } } $i = $f = $l = 0; recursiveDir( './../', $f, $i, $l ); echo '<pre> <b>Linii: </b>'.$i.' <b>Znaków: </b>'.$l.' -------- <b>Plików </b>'.$f.' </pre>'; ?>