--- John Nichel <[EMAIL PROTECTED]> wrote:

> Chris wrote:
> >    if (is_dir($file) && ($file!=".") && ($file!="..")) {
> >      $users[]=$file;
> >    }
> > 
> > It's only adding it to the array if all 3 of those are true. and
> since 
> > $file can't be both '.' and '..' at the same time, it's never
> matching.
> > 
> > I'd do something like:
> > 
> > if (is_dir($file) || ($file!=".") || ($file!="..")) continue;
> 
> That will match everything and anything, files and dot
> directories...
> 
> The first statement by the OP should work fine.  All three will
> eval to 
> true if it is a directory, and the directory isn't . or ..
> 

Which is the problem I'm having. It's not evaluating anything as a
directory, except . and ..



=====
Mark Weinstock
[EMAIL PROTECTED]
***************************************
You can't demand something as a "right" unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***************************************


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to