function getfilecounts($ff){
$dir = './'.$ff;
$handle = opendir($dir);
$i = 0;
while(false !== $file=(readdir($handle))){
if($file !== '.' && $file != '..')
{
$i++;
}
}
closedir($handle);
return $i;
}
希望本文所述对大家的php程序设计有所帮助。
function getfilecounts($ff){
$dir = './'.$ff;
$handle = opendir($dir);
$i = 0;
while(false !== $file=(readdir($handle))){
if($file !== '.' && $file != '..')
{
$i++;
}
}
closedir($handle);
return $i;
}
希望本文所述对大家的php程序设计有所帮助。