时间:2021-07-01 10:21:17 帮助过:8人阅读
";
$counts += ($total - $space - $notes);
}
if (is_file($filename)) {
codeCount($filename);
} else
if (is_dir($filename)) {
if ($dh = opendir($filename)) {
while (($file = readdir($dh)) != false) {
// 文件名的全路径 包含文件名
$filePath = $filename . $file;
// 获取文件修改时间
if (is_file($filePath)) {
codeCount($filePath);
}
}
closedir($dh);
}
}
echo "
" . $counts;//输出总的代码量
?>
以上就介绍了php代码统计工具,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。