Hi,
You could put them into an array and sort the array.
cheers,
Catalin
"<Ef>" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> How can i do for the moment i open and list all file there, display in the
> browser the order of this files by name ?. I have this code:
>
> <?php
> $handle=opendir('.');
> while ($file = readdir($handle)) {
> if ($file != "." && $file != "..") {
> echo "$file\n";
> }
> }
> closedir($handle);
> ?>
>
> And the result send to the browser, is the files, but witouth any order.
>
> Thanks for reading, your help is greatly appreciated!
>
> --
> Esteban Fern�ndez T.
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php