read()) { $fext = substr($f1,strrpos($f1,".")); if (in_array($fext, $ext_array)) { continue; }else{ if(($f1!= '.') && ($f1!= '..')) { if(!is_dir($f1)) $filecount1++; $thelist .= '
  • '.$f1.''; } } } echo "Total files in folder: "; echo "$filecount1"; ?>

    To use this directory file, uncomment php

    Dir: