\n"; echo "\n"; echo "\n"; // Define the full path to your folder, shouldn't need changing // Open the folder $dir_handle = @opendir($path) or die("Unable to open folder"); // Loop through the files while (false !== ($file = readdir($dir_handle))) { // Prevent this file itself being shown // If you want it to not display any other files // enter more of these if($file == "index.php") continue; //Prevent folders showing if($file == ".") continue; if($file == "..") continue; // Display the results $c++; echo "\n"; if($c%1==0) { echo "\n"; } } // Close it closedir($dir_handle); } ?>
\n"; echo "
$tit1
"; echo "
\n"; echo " $c. $file "; echo "