Answers for "php to list files"

PHP
0

php to list files

<?php

$fileList = glob('test/*.php');
foreach($fileList as $filename){
    if(is_file($filename)){
        echo $filename, '<br>'; 
    }   
}
?>
Posted by: Guest on October-18-2021

Browse Popular Code Answers by Language