Answers for "php loop through files in directory and subdirectories"

PHP
0

php iterate folder

// Shows us all files and directories in directory except "." and "..".

foreach (new DirectoryIterator('../moodle') as $fileInfo) {
    if($fileInfo->isDot()) continue;
    echo $fileInfo->getFilename() . "<br>\n";
}
Posted by: Guest on October-07-2020

Code answers related to "php loop through files in directory and subdirectories"

Browse Popular Code Answers by Language