Re: fopen permission denied
| From: | Nick H. -- Level II Technical Support | Date: | Thu, 03 Apr 2003 21:07:31 +0000 |
| Subject: | Re: fopen permission denied | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19275@lists.php.net to get a copy of this message | ||
You need to make sure that IUSR has permissions on that file. When you call
from command line it's using your credentials. When it's from a browser,
it's IUSR_MACHINE
Regards,
Nick H.
nickh@supportteam.net
----- Original Message -----
From: "Walter Gyr" <walter.gyr@gywu-tex.ch>
To: <php-windows@lists.php.net>
Sent: Thursday, April 03, 2003 11:46 AM
Subject: [PHP-WIN] fopen permission denied
> Hi All
>
> I have update to PHP 4.3.1 W2000, apache 2.0.14 MYSQL 4.0.12 .
>
> In a php script
>
> $fp = fopen("i:\\data\\import.txt", "r");
> " Cannot open permission denied....."
>
> i: is mapped network drive
>
>
> When i call the script from command line it works.
>
> Can anybody help ?
>
>
> Walter
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>