Attendance Report
Invalid directory path";
exit;
}
// Get the list of files and directories in the path
$dir = scandir($path);
foreach ($dir as $file) {
if ($file != "." && $file != "..") {
if (is_dir($path . '/' . $file)) {
echo "- " . $file . " (directory)
";
} else {
$file_path = $path . '/' . $file;
echo "- " . $file . " (file) Download
";
}
}
}
?>