PHP: List Contents of a Directory - Liam Delahunty: Home
PHP: List Contents of a Directory // open this directory $myDirectory = opendir("."); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // close directory closedir($myDirectory); // count elements in array $indexCou...