Hello,
I have a script that is supposed to perform a simple copy on an uploaded image. For some reason I cannot get it to return true.
I believe the problem may be with permissions; however, I have opened iis 6.0 and allowed read, write, and script access to the directory. I have also gone into the security settings for the directory and allowed full control on every user account. The only thing that seems strange is that for the Internet Guest Account write has both allow and deny checked. I have gone into the advanced settings and noticed that there are two listings for Internet Guest Account. One allows full control and the other denies write permissions. I can't however change the selection or remove it.
My code looks like this:
if( !is_dir($idir) )
{
echo("Specified directory is not valid... Exiting");
unlink($HTTP_POST_FILES['upfile']['tmp_name']);
exit();
}
else {
echo "Valid directory: ".$idir."\n"."<BR>";
}
$file_ext = strrchr($_FILES['imagefile']['name'], '.');
if (copy($HTTP_POST_FILES['imagefile']['tmp_name'],$idir.$HTTP_POST_FILES['imagefile']['name'])) {
If anyone can offer me assistance I would really appreciate it,
Thanks,
slevytam