Using the following function, I would like to list all the files of a certain path (directories) but without listing (taking into account) the subdirectories situated under that same pathname.
function listFolderFiles($dir){
$ffs = scandir($dir);
echo '<ol>';
foreach($ffs as $ff){
if (!is_dir($dir . '/' . $ff)) {
if( is_file($ff)){
listFolderFiles_1($ff);
}
echo '</li>';
}
}
echo '</ol>';
}
//
// Array section
//Destination data
$bb = 1;
$lines_2 = file('C:/Users/TEMP/PHP/Destination_Directory.txt');
$table = array($lines_2);