I have a IIS on an XP box. I have a code that will let a user enter a piece of html code. This will update their html file on the site. This is the code that I used:
function page_update($html)
{
global $valid_user;
$wrfile = $valid_user."/index.html";
$fp = fopen($wrfile,"w");
if (!$fp)
{
return false;
}
fwrite($fp, $html);
flock($fp, 3);
fclose($fp);
return true;
}
When I run it I get this message:
Warning: fopen("user1/index.html","w") - Permission denied in web_fns.php on line 75
Someone please help me. Thanks,
Vince