Re: Got to be an easier way to get a list of files/folders?
| From: | Tristan dot Pretty at risk dot sungard dot com | Date: | Wed, 22 Dec 2004 16:38:01 +0000 |
| Subject: | Re: Got to be an easier way to get a list of files/folders? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204971@lists.php.net to get a copy of this message | ||
Ignore me.. I'm dumb after all...
I found what I needed in my very first PHP book...!
Jeeez, is it Friday yet???
Tristan.Pretty@risk.sungard.com
22/12/2004 16:20
To
php-general@lists.php.net
cc
Subject
[PHP] Got to be an easier way to get a list of files/folders?
I'm writing a photo gallery for my site.
I want to make it as idiot proof as possible...
What I'm planning, is to is upload my pics to a folder in the photo
directory, and then run a scan to see what new folders there are.
All good, I've built a DB backend to lsit teh folders etc...
but I need to be able to list all the folders Vs my list of folders in my
DB...
How can I get a list of folders and files within them, without using a
massive script like this:?
http://uk.php.net/manual/en/function.readdir.php
I'm new to file manipulation, and if I'm being dumb, sorry...
Tris...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php