I'm trying to perform a copy() with Microsoft IIS 5 but i'm gettin permission denied errors. It seems to copy fine when i'm copying to any directory, but I get errors when it is trying to copy in to c:\inetpub\wwwroot and any sub-directories within it. I changed the write permissions in IIS but I'm still getting a permission denied error any ideas?
Here's some code:
if (${"upload".$name} != "") {
if (file_exists("c:/inetpub/wwwroot/myfile.tmp"))
unlink("c:/inetpub/wwwroot/myfile.tmp");
copy(${"upload".$name}, "c:/inetpub/wwwroot/myfile.tmp");
$value = ${"upload_".$name};
} else
$value = "";
Thanks..
- rob.f