Hi all,

I have a script that lists directory contents but I'm trying to put the 
results in reverse order.

I've tried the arsort & array reverse but have so far been unable to get 
them working, can somebody please help me!

Here's a look at my script:
        // print the current directory in unordered list

        // get each entry within the directory & return to user with the 
        $myDir = dir(".");
        while($FileName = $myDir->read())
                if ($FileName != "." && $FileName != ".." && eregi 
                        print("<LI><a href=$FileName>$entryName \n</a>");

        // close directory



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to