Check if directory have sub-directories PHP -


i trying file in directory. operation must fast.the inital directory can have childrens path/child/sub_child/sub_sub_child/afile. file can present before

  • path

    • child
    • a file

    i not care file getting want fast way it.

i stuck this

        $h = opendir($path); //open current directory         while (false !== ($entry = readdir($h)))          {             if($entry != '.' && $entry != '..')              {                  echo $entry;                  break;              }         } 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -