RE: [PHP-WIN] Building a list of filenames (w2k)
| From: | Asendorf, John | Date: | Fri, 08 Feb 2002 13:36:56 +0000 |
| Subject: | RE: [PHP-WIN] Building a list of filenames (w2k) | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11912@lists.php.net to get a copy of this message | ||
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);
echo "<table>";
while (list($key, $file) = each($retVal)) {
$flename = "$file";
echo "<tr><td>$flename</td></tr>";
}
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: George Pitcher [mailto:fmdev@yahoo.co.uk]
> Sent: Friday, February 08, 2002 6:09 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Building a list of filenames (w2k)
>
>
> Hi all,
>
> I want to build a list of filenames from a particular
> directory. I can't
> find anything like this in the manual or on the list archive
> so any pointers
> would be appreciated.
>
> George
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>