Hey,ich hab mir ein script zum  alphabetischen auflisten von dateien gebastelt.
Das geht auch einigermaßen nur stoße ich auf ein problem.
Der geht dir for() schleife nur einmal durch.Warum?
PHP
		
					
				<?php 
     $handle = opendir("./images/.");
	 $letters = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
                      for($x = 0; $x < 25; $x++) {
	                        while($file = readdir($handle)) {
							        $file1  = strtolower($file);
	                                $file2  = substr($file1 ,0 ,1);
							   if($file2 == $letters[$x]) {
							        echo "$file 
";
								      }
								  }
							 }
	 ?>
	
			Alles anzeigen