Re: is_dir on WIndows
| From: | Mark | Date: | Mon, 27 Sep 2004 20:43:03 +0000 |
| Subject: | Re: is_dir on WIndows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198012@lists.php.net to get a copy of this message | ||
--- Jason Wong <php-general@gremlins.biz> 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
mark_weinstock@yahoo.com
***************************************
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