// Define the full path to your folder from root$file
$path = "/home/user/public/foldername/";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "index.php" )
continue;
echo "
";
}
// Close
closedir($dir_handle);
Advnaced
Copyright Ayon Baidya
No comments:
Post a Comment