I have the form below
<form method='post' action=upload_file2.php enctype='multipart/form-data'>
<input type='hidden' name='MAX_FILE_SIZE' value='100000'>
Enter the File <input type='file' name='userfile'> <br>
<input type='submit' name='submit' value='Send File'>
and here is the upload_file2.php
<? $name=$_FILES['userfile']['name'];
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
copy($_FILES['userfile']['tmp_name'], "\phpdev\\www\\tests");
} ?>
the directory c:\phpdev\www\tests exists and the problem which parser shows is
Warning: Unable to create '\phpdev\www\tests': Permission denied in c:\phpdev\www\tests\upload_file2.php on line 3
Could you help me with this?
Thanks in advance!