Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file iterator


Shows us all files and catalogues in directory except "." and "..".

<?php

foreach (new DirectoryIterator('../moodle') as $fileInfo) {
    if($fileInfo->isDot()) continue;
    echo $fileInfo->getFilename() . "<br>
";
}

?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #file #iterator
ADD COMMENT
Topic
Name
7+3 =