Re: [PHP-WIN] Building a list of filenames (w2k)

2002-02-08 Thread Nicole Amashta
YOu should do a: reset($retVal); after doing that rsort($retVal); ## Load Directory Into Array $path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/"; $handle=opendir($path); while ($file = readdir($handle)) $retVal[count($retVal)] = $file; ## Clean up and reverse sort

RE: [PHP-WIN] Building a list of filenames (w2k)

2002-02-08 Thread Asendorf, John
I'm sure I stole this code from somewhere else... //Load Directory Into Array $path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/"; $handle=opendir($path); while ($file = readdir($handle)) $retVal[count($retVal)] = $file; //Clean up and reverse sort closedir($handle); rsort($retVal); ech