If you want to show all contents of a directory just leve it without index page, then you'll be able to do this -->
http://www.server.com/directory/
and you'll see a list of all contents in that dir.
If you want to scan a directory of yours with php use this:
Code:
if ($dir = @opendir("./mydir_from_this_diectory")) {
while (($file = readdir($dir)) !== false) {
echo "$file<br>";
}
closedir($dir);
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.