Hi Guys,
I have some problems to upload an image to a directory on windows 2000 pro, i give write permission to all on the folder and error:
Warning: copy(c:\Arquivos de programas\Apache Group\Apache2\htdocs\scc\images\products): failed to open stream: Permission denied in C:\Arquivos de programas\Apache Group\Apache2\htdocs\scc\products\producs_add.php on line 8
Follow the code:
<?php
if ((!empty($HTTP_GET_VARS['action'])) && ($HTTP_GET_VARS['action'] == "add")) {
if(!empty($HTTP_POST_VARS['txtPic'])) {
$path = "c:\Arquivos de programas\Apache Group\Apache2\htdocs\scc\images\products";
copy($HTTP_POST_VARS['txtPic'], $path);
print "OK";
exit();
}
}
?>
Please some one can help-me?
Or if u have another easy upload script send-me! 😃
Thx
Augusto