--- Jason Wong <[EMAIL PROTECTED]> wrote:

> On Tuesday 28 September 2004 03:54, Mark wrote:
> 
> > With the echos above in place, I get the resource handle, and it
> > echos everything you would expect except that is_dir() fails to
> > recognize the directories.
> 
> Because is_dir() expects a path to the file as well, otherwise it
> would be 
> trying to look at $file in it's current working directory (cwd)
> wherever that 
> may be (most likely not $maildir).
> 
> > It DOES recognize . and .. as directories, for some bizarre
> reason.
> 
> Because all directories contain '.' and '..' and hence the cwd of
> is_dir() 
> would have those. (BTW '.' and '..' ARE directories).

Thanks. That worked. Now that I think about it, it makse sense. I
should have thought about it first...

=====
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!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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

Reply via email to