RE: [PHP] Windows 2000 Permissions error

From: Date: Fri, 19 Oct 2001 19:57:09 +0000
Subject: RE: [PHP] Windows 2000 Permissions error
Groups: php.general 
Request: Send a blank email to php-general+get-71622@lists.php.net to get a copy of this message
Well the code actually traverses a group of directories and errors on that directory (the only one I've changed the permissions to) so I'm pretty sure it's not the code. Here's a snippet of the traversing code.. ---<code start>--- function listDirs($startDir) { echo "Checking $startDir...<br>"; $d = dir("$startDir"); while($entry=$d->read()) { if (substr($entry,0,1)!=".") { if(filetype("$startDir/$entry")=="dir") listDirs("$startDir/$entry"); if(substr($entry,strlen($entry)-4) == ".php") dbInsert("$startDir/$entry"); } } } listDirs("/inetpub/wwwroot"); ---<code finish>--- This outputs all the directories.. ending with this ---<paste start>--- Checking /inetpub/wwwroot/info/superintendent... Checking /inetpub/wwwroot/info/transportation... Checking /inetpub/wwwroot/info/transportation/Trans... Warning: OpenDir: Invalid argument (errno 22) in c:\inetpub\wwwroot\search\update.php on line 71 Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\search\update.php on line 72 ---<paste finish>--- After "Checking /inetpub/wwwroot/info/transportation/Trans..." I'm receiving the error. Since the Trans directory is the directory with the different permissions, I'm lead to believe it's a permissions issue. -Justin -----Original Message----- From: Frewuill Rodriguez [mailto:frewuill@merlin-corp.com] Sent: Friday, October 19, 2001 2:52 PM To: King, Justin Subject: Re: [PHP] Windows 2000 Permissions error check your path, may be some extra slash.. show the code when call dir() ----- Original Message ----- From: "King, Justin" <KingJ@superior.k12.wi.us> To: <php-general@lists.php.net> Sent: Friday, October 19, 2001 3:40 PM Subject: [PHP] Windows 2000 Permissions error While trying to use dir() on a certain directory, I get the error "Warning: OpenDir: Invalid argument (errno 22) in c:\inetpub\wwwroot\search\update.php on line 71". I'm aware this is most likely a permissions error, but I've already given SYSTEM, SELF, and SERVICE full control over the directory. I have to restrict access to a few users on our network for this directory so EVERYONE isn't an option. Anyone have any ideas as to what I need to set the permissions to? -Justin

« previous php.general (#71622) next »