Warning: move_uploaded_file(/pic/url/pic_name.jpeg) [function.move-uploaded-file]: failed to open stream: Permission denied in /file/url/file_name.php on line 14
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpocY2Tg' to '/pic/url/pic_name.jpeg' in /file/url/file_name.php on line 14
There was an error uploading the file, please try again!
0
Warning: Cannot modify header information - headers already sent by (output started at /file/url/file_name.php:14) in /file/url/file_name.php on line 36
Redirecting...
-----------------------
The 0 is the output of print($_FILES['avatar']['error']);
I wanna know how I should do to get this working. I guess it's apache that hasn't the right permissions.. but is it in the destination dir or the /tmp/ dir the permissions fail?