Re: different operations on files than dirs
| From: | Kevin Ferron | Date: | Thu, 16 Nov 2000 09:39:27 +0000 |
| Subject: | Re: different operations on files than dirs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25633@lists.php.net to get a copy of this message | ||
Oops pulled the trigger too soon..
The problem I'm having with that code is that it ALWAYS returns true on the
elseif (the actions for files).
I've tried is_file() flipflop also
""Kevin Ferron"" <kevin_ferron@hotmail.com> wrote in message
news:8uvv9m$8lq$1@toye.p.sourceforge.net...
> I'm stuck.. variations on the following code is what I've been trying:
>
> $handle=opendir($this->dirshow);
> while (false!==($file = readdir($handle))) {
> if ($file != "." && $file != "..") {
> if (is_dir($file) == 1) {
>
> STUFF I WANT TO HAPPEN IF ITS A DIR
> }
>
> elseif (is_dir($file) == 0) {
> IF ITS A FILE
> }
>
> Thanks for your help.
>
> phool
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>