Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>
";
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #iterate #folder
ADD COMMENT
Topic
Name
6+9 =