note 91046 deleted from function.is-dir by danbrown

From: Date: Fri, 22 May 2009 14:44:30 +0000
Subject: note 91046 deleted from function.is-dir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155882@lists.php.net to get a copy of this message
Note Submitter: george at softeh dot ro ---- 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

« previous php.notes (#155882) next »