") ?>', '") ?>', file_get_contents($dir . "/" . $file))); $size = $size + filesize($dir . "/" . $file); $found = $found + count(file($dir . "/" . $file)); } } } return $found; } if (PHP_SAPI === 'cli') { echo("Couting lines..."); crawl($cwd); echo("\nDONE!\n\nTotal code is " . $found . " lines long."); echo("({$size} bytes)"); }