RE: [PHP] Windows 2000 Permissions error
| From: | King, Justin | Date: | Fri, 19 Oct 2001 20:25:43 +0000 |
| Subject: | RE: [PHP] Windows 2000 Permissions error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71625@lists.php.net to get a copy of this message | ||
No that's not the issue either. I found out that the important thing to
add to permissions with full control was "NETWORK". PHP in windows is
smart enough to reverse slashes. It helps make things more
cross-platform in php.
-Justin
-----Original Message-----
From: Frewuill Rodriguez [mailto:frewuill@merlin-corp.com]
Sent: Friday, October 19, 2001 3:18 PM
To: King, Justin
Subject: Re: [PHP] Windows 2000 Permissions error
You said you were running on win 2000
shouldn't you use c:\inetpub\wwwroot as your startdir instead of
/inetpub/wwwroot ??
hope this help
----- Original Message -----
From: "King, Justin" <KingJ@superior.k12.wi.us>
To: <php-general@lists.php.net>
Sent: Friday, October 19, 2001 3:57 PM
Subject: RE: [PHP] Windows 2000 Permissions error
> 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
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
php-list-admin@lists.php.net