Re: Enumerate files in a folder
| From: | php3 at developersdesk dot com | Date: | Mon, 26 Feb 2001 23:16:26 +0000 |
| Subject: | Re: Enumerate files in a folder | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41755@lists.php.net to get a copy of this message | ||
Addressed to: "Karl J. Stubsjoen" <karlflips@kstub.com>
php-general@lists.php.net
** Reply to note from "Karl J. Stubsjoen" <karlflips@kstub.com> Mon, 26 Feb 2001
15:28:27 -0700
>
> Hello,
>
> I need a little help getting started with my project (i'm new to PHP). I
> need to enumerate all of the files in a folder, their name mostly. How
> would I do that?
Take a look here:
http://www.php.net/manual/en/html/ref.dir.html
opendir, readdir, and closedir will get you moving in the right
direction.
Opendir includes a complete example.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com