Answers for "php files list"

PHP
4

php list all files in directory

scandir ( string $directory [, int $sorting_order = SCANDIR_SORT_ASCENDING [, resource $context ]] ) : array
Posted by: Guest on April-23-2020
0

php list *files

foreach(glob(IMAGEPATH.'*') as $filename){
    echo basename($filename) . "n";
}
Posted by: Guest on September-04-2021

Browse Popular Code Answers by Language