function is_dir
| From: | MWCT - Markus Weber | Date: | Mon, 18 Aug 2003 22:02:22 +0000 |
| Subject: | function is_dir | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355911@lists.php.net to get a copy of this message | ||
Hello,
same comments using PHP function 'is_dir' under Windows NT/XP using IIS, PHP as CGI:
Path: D:/folder1/folder2/folder3
Example 1:
NTFS rights of folder2: admins, system: Full, guests: READ
NTFS rights of folder3: unimportant (even, if nobody has a right for this folder)
is_dir("D:/folder1/folder2/folder3") --> TRUE
---
Example 2:
NTFS rights of folder2: admins, system: Full (Note: Guests are removed)
NTFS rights of folder3: Everyone: Full
is_dir("D:/folder1/folder2/folder3") --> FALSE
---
It seems that next directory above must have the appropriate NTFS rights to get the right result of
'is_dir()'.
Also it seems that this 'rule' ist not valid for the root directory of a drive:
Example 3:
NTFS rights of Drive D: admin, system: Full
is_dir("D:") --> TRUE
---
It seems that the NT user right 'Bypass traverse checking' has no influence of this
behaviour.
Mit freundlichen Grüßen / best regards
Markus Weber
_________________________________________________