Re: [PHP] Sorting files in a directory

2007-08-09 Thread Chad Robinson
Steve Marquez wrote: I know this code does not work, but I was curious if someone can take a look and tell me what is wrong? Thank you so much. Re-indent your code properly. If you do it will look like: "; while (($file = readdir($dh)) !== false) { if (ereg($pattern, $file)

Re: [PHP] Sorting files in a directory

2007-08-08 Thread Chris
Steve Marquez wrote: Greetings, I have some code that opens a directory and displays the files. I want to display the files in Alphabetical order. I know this code does not work, but I was curious if someone can take a look and tell me what is wrong? Thank you so much. [ I hope the indenting

[PHP] Sorting files in a directory

2007-08-08 Thread Steve Marquez
Greetings, I have some code that opens a directory and displays the files. I want to display the files in Alphabetical order. I know this code does not work, but I was curious if someone can take a look and tell me what is wrong? Thank you so much. "; //echo "$file"; // iterate ove