Click to See Complete Forum and Search --> : IIS and permissions issues


glenwagley
07-04-2002, 01:34 AM
I'm running IIS 5 on W2K. I have a simple script that tries to open a file and write data from an html form to the file. When I call fopen( "foo.txt", "a+" ); I get the following error:
Permission denied in c:\inetpub\wwwroot\test.php on line 78

Any ideas? I'm sure I have permissions to this directory, but do I have to somehow allow php write permission? Thanks!
-Glen

mithril
07-05-2002, 02:22 AM
You must give the user that IIS runs as (typically IUSR_<machine_name>) write permissions to that folder. Your account's folder permissions don't affect the script..... even Windows isn't insecure enough to run system processes as the logged in user:)

-geoff