Php To List Files

[Solved] Php To List Files | Php - Code Explorer | yomemimo.com
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

Answers related to php to list files

Code Explorer Popular Question For Php