note 91046 added to function.is-dir
| From: | george at softeh dot ro | Date: | Fri, 22 May 2009 07:05:43 +0000 |
| Subject: | note 91046 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-155868@lists.php.net to get a copy of this message | ||
on win32 /PHP 5.2.9 / apache 2.0 service
is_dir($fullPath) sometimes does not work even
is_readable and filetype($fullPath) work On those systems it seems that fileowner and filesize,
stat and so on have the same problem.
...so better than use is_dir on this os, use
if( filetype($yourFullPath)=="dir" ){
// put your code eq for is_dir check, here
}.
or similar.
I think is a an apache running user related problem, as in accesing win32 shares ( http://httpd.apache.org/docs/2.0/platform/windows.html
) "The LocalSystem account has no privileges to your network via any Windows-secured mechanism,
including the file system, named pipes, DCOM, or secure RPC. It has, however, wide privileges
locally" .
So maybe the locally privileges are not so wide
----
Server IP: 69.147.83.197
Probable Submitter: 91.199.49.252
----
Manual Page -- http://www.php.net/manual/en/function.is-dir.php
Edit -- https://master.php.net/note/edit/91046
Del: integrated -- https://master.php.net/note/delete/91046/integrated
Del: useless -- https://master.php.net/note/delete/91046/useless
Del: bad code -- https://master.php.net/note/delete/91046/bad+code
Del: spam -- https://master.php.net/note/delete/91046/spam
Del: non-english -- https://master.php.net/note/delete/91046/non-english
Del: in docs -- https://master.php.net/note/delete/91046/in+docs
Del: other reasons-- https://master.php.net/note/delete/91046
Reject -- https://master.php.net/note/reject/91046
Search -- https://master.php.net/manage/user-notes.php