Hi, I have coded a site, whereby users can log in, and depending on their group, view all files within their group directory:
if ($handle = opendir("storage/Admin/$group")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<a target=\"_blank\" href=\"storage/Admin/$group/$file\">$file</a> <br />";
}
}
closedir($handle);
}
In this example, a user can click on their file, and it will let them download it, but if there is a folder (directory) in there, once clicked on, it will open a index of the directory.
Is there a way instead, to let it open a custom page and list the files within it there?