Re: List files in a folder?
| From: | malte | Date: | Tue, 08 Jul 2003 15:01:02 +0000 |
| Subject: | Re: List files in a folder? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20735@lists.php.net to get a copy of this message | ||
$my_directory = "./stuff/morestuff")
$dir = dir($my_directory);
while($temp = $dir->read())
{
$dirarray[] = $temp;
}
----- Original Message -----
From: "Anthony" <atampone@attechcomputer.com>
To: <php-windows@lists.php.net>
Sent: Tuesday, July 08, 2003 4:27 PM
Subject: [PHP-WIN] List files in a folder?
> Is there a way I can get a list of files in a folder though PHP? I'd like
> to use PHP to access certian folders on my system through the browser, but
I
> need a way that I can load a list of files in a folder into an array.
> anyone have any ideas?
>
> PHP 4.3.1, Apache 2.0.45 on Win2K
>
> - Anthony
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>