Hi, I've written a test form for updating files to my server using PHP, here's the code:
<FORM enctype="multipart/form-data" name="archivo" method="post" action="prueba2.php">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="512000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
And here's the PHP code that works behind it:
if (is_uploaded_file($userfile)){
move_uploaded_file($userfile, "img/pruebas");
}
But it returns this:
Warning: Unable to create 'img/pruebas': Permission denied in c:\www\html\prueba2.php on line 6
Warning: Unable to move 'C:\PHP\uploads\php6083.TMP' to 'img/pruebas' in c:\www\html\prueba2.php on line 6
Can someone help??