how to get the number of files in the directory Excluding hidden files

how to get the number of files in the directory Excluding hidden files

 how to get the number of files in the directory Excluding hidden files
<?php

$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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel