HI, i'm trying to perform a upload operaion on my web site but i got a "permission denyed" error when i do de copy() function.
script:
if (is_uploaded_file($_FILES['archivo']['tmp_name'])) {
//chmod("C:/Apache/wwwroot/ap_registro_tareas",775);
copy($_FILES['archivo']['tmp_name'], "C:/Apache/wwwroot/ap_registro_tareas");
} else {
echo "Possible file upload attack. Filename: " . $_FILES['archivo']['name'];
}
error:
Warning: copy(C:/Apache/wwwroot/ap_registro_tareas) [function.copy]: failed to create stream: Permission denied in c:\apache\wwwroot\ap_registro_tareas\ingreso_tarea\prueba_file.php on line 17
it seems that is a permission problem by i dont kwnow exactly what permission to assign to the folder.
i have try to put all privileges to all users in the secuity issue but it still doesnt work.
bye
byp