Can anybody point me in the right direction of what exactly it is im doing wrong please. Im trying to upload a file to a specific location (folder), it works fine when i simply specify the uploads folder using the following:
[code=php]if (move_uploaded_file($file_tmp,’uploads/’.$file_name))
However when attempting to point to a folder (that exists) inside the uploads folder ‘uploads/11’ using a variable in the following code:
[code=php]if (move_uploaded_file($file_tmp, ‘uploads/’.$folder_id.’/’.$file_name))
I get the error messages:
[QUOTE]
Warning: move_uploaded_file(uploads/ 11 /CV.doc) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:xampphtdocsboxedINupload.php on line 62
[QUOTE]
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move ‘C:xampptmpphp59.tmp’ to ‘uploads/ 11 /CV.doc’ in C:xampphtdocsboxedINupload.php on line 62
Any suggestions?