PHP vs IIS

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Pepe_Le_Pew
Forum Newbie
Posts: 6
Joined: Tue Jul 09, 2002 9:52 am
Location: Longueuil, Québec

PHP vs IIS

Post 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 :-)
kayec
Forum Newbie
Posts: 5
Joined: Tue Jul 09, 2002 7:49 pm

Post 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:
Post Reply