Question : php to list files
Answered by : mate-molnar
<?php
$fileList = glob('test/*.php');
foreach($fileList as $filename){ if(is_file($filename)){ echo $filename, '<br>'; }
}
?>
Source : https://www.nicesnippets.com/blog/how-to-get-list-of-file-in-folder-in-php | Last Update : Mon, 25 Oct 21