Page 1 of 1

PHP vs IIS

Posted: Tue Jul 09, 2002 9:52 am
by Pepe_Le_Pew
Hi everyone

I'M currently having a problem using php with IIS 5.

My script tries to open a file ( write mode ), using (
fopen( "test.txt", "w" ); )

Actually, I receive the following message...

Warning: fopen("test.txt", "w") - Permission denied in C:\inetpub\wwwroot\counter.php on line 21

I guess that the problem is in my IIS configuration, so I've putted all the options for the base directory to allow read and write, but it does'nt seem to work :wink:

Anyone got an idea ?

Thank's in advance :-)

Posted: Tue Jul 09, 2002 7:49 pm
by kayec
You checked the directory level permissions (NTFS) right?

Right click on the c:\inetpub\wwwroot\ folder and ensure that IUSR_SOMETHING has read and write permissions.

If that is true, go into IIS and get the properties of your "default web site". Look for the "directory securty" tab and "edit" the "anonymous access". A new window pops up, click edit "anonymouse access" and ensure that IURS_SOMETHING is the user that IIS is using.

:mrgreen: