<?php
$path="/var/www/html/mm";
$files = scandir($path);
foreach($files as $file)
{
if ($file[0] != '.') $nothidden[] = $file;
}
echo sizeof($nothidden);
?>
$path="/var/www/html/mm";
$files = scandir($path);
foreach($files as $file)
{
if ($file[0] != '.') $nothidden[] = $file;
}
echo sizeof($nothidden);
?>
0 Response to " how to get the number of files in the directory Excluding hidden files"
Post a Comment