// Use this php script in every subfolder with the corresponding path.
// Define the full path to your folder from root
// If you don't know the path, use a syntax error, and you will be told in the error message!
$path = "/afs/elte.hu/user/p/peterfalvi/web/PhD/Magyar/";
// 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 "$file
";
}
// Close
closedir($dir_handle);
?>