I' m getting the listed error when I try to update a text file or html file with php on my local IIS Server. I have set the folder and subfolder permissions to read and write from the IIS configuration panel.
The authentication is set to anonymous access and user name is iusr_computername.
Execute permissions is set to: Scripts and Executables.
Below is the PHP code I'm using.
$stringData = stripslashes( $_POST['FCKeditor1'] ) ;
$myFile = "testFile.html";
$fh = fopen($myFile, 'w') or die("can't open file");