i have a problem, could anyone help me?
basically my code is this:
if (move_uploaded_file($_FILES['file']['tmp_name'],
'users/' .$_SESSION['ID']. '/' .$res['id'].'.'.$type)){
?> <h align="center">Upload Successful</h> <?php
}
but when i use it in the web i get the following error:
Warning: move_uploaded_file(users/8/3/) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or directory in C:\xampp\htdocs\mike\upload.php on line 17
Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move 'C:\xampp\tmp\php9634.tmp' to 'users/8/3.cpp' in C:\xampp\htdocs\mike\upload.php on line 17
I think the problem is in the permissions, searching the web i have only gotten misguided and had to reinstall apache.
btw im using Win 7 , Xampp