Re: file test
| From: | php3 at developersdesk dot com | Date: | Fri, 23 Feb 2001 23:17:02 +0000 |
| Subject: | Re: file test | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41379@lists.php.net to get a copy of this message | ||
Addressed to: "Kevin Beckford" <kevin1@outcomemail.com>
php-general@lists.php.net
** Reply to note from "Kevin Beckford" <kevin1@outcomemail.com> Fri, 23 Feb 2001
15:42:26 -0500
>
> I am opening the top level of a a directory structure with dir. I want make
> a list of the subdirectories, but not the files. Is there a file test
> operator like perl's -d in php? I will then have to go into the sub
> directories to perform actions on non directory files
I bet there is...
http://www.php.net/manual/en/ref.filesystem.php
Would be a good place to find out.
Hint: look for is_file() or is_dir().
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com