#42912 [Opn]: file_exists don't work Correctly with NTLM and User with Lower Rights

From: Date: Wed, 10 Oct 2007 14:19:53 +0000
Subject: #42912 [Opn]: file_exists don't work Correctly with NTLM and User with Lower Rights
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118365@lists.php.net to get a copy of this message
ID: 42912 User updated by: administrator dot bau at josephinum dot at Reported By: administrator dot bau at josephinum dot at Status: Open Bug Type: Filesystem function related Operating System: Windows 2003 SP2 PHP Version: 5.2.4 New Comment: OK i it works now! Folder A Webrootfolder index.php < where the Script is fileadmin Template main.html The "Folder A" (Parent Folder of Root folder!!!) need Directory Listing Rights for the User how Connect on IIS Is this an ISAPI oder IIS Bug? Or iam a dumb man?? Previous Comments: ------------------------------------------------------------------------ [2007-10-10 13:57:01] administrator dot bau at josephinum dot at I think i got it When i get "getcwd" from Admin i get the Path to the Correct Root Folder With lower Right User i get "c:\windows\system32\inetsrv" and then php cannot Accses the File because of the wrong Root Folder ------------------------------------------------------------------------ [2007-10-10 13:32:23] administrator dot bau at josephinum dot at Edit some of the Sample Code from and PHP irc chanel for testing purpose <?php $file='fileadmin/template/loadme.html'; ini_set("include_path", "/fileadmin/template"); clearstatcache(); if (is_File($file)) { echo ('File Exists:'.$file.'<br>'); }else{ echo('File ERROR:'.$file.'<br>'); } include_once($file); echo('<br>Loaded at'.date("r")); ?> ------------------------------------------------------------------------ [2007-10-10 13:06:58] administrator dot bau at josephinum dot at Looks similar to Bug ID:40818 but i have 5.2.4 I keep going on trail and error :-) ------------------------------------------------------------------------ [2007-10-10 12:19:27] administrator dot bau at josephinum dot at After IIS restart When i first Open the Page with Admin Rights the it Shows "File Exists" after that i Open it with User Rights and it Shows "File Exists" Again IIS Restart BUT First open with user Rigths it Shows "File Error" after i open it with Admin Rights then it Shows File Exists with User rights. i keep looking for it, i hope someone can help me. ------------------------------------------------------------------------ [2007-10-10 11:25:50] administrator dot bau at josephinum dot at When i Reload the Page Reload Fast enough(under a half second) i become True sometimes, but when i Relod the Page Every Second i become alwayse false. But the HTML File get included ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42912 -- Edit this bug report at http://bugs.php.net/?id=42912&edit=1

« previous php.bugs (#118365) next »