Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Photo Upload Error

Yup, another error :)

This time it happens when I try to upload a picture into one of the photo albums. The picture falls withing the size and height/width requirements, so no problems there. These are the errors I am getting:

CodeDownload  

Warning: move_uploaded_file(images/photoalbum/submissions/schooler2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/kjharnco/public_html/submit.php on line 238

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpJITFfu' to 'images/photoalbum/submissions/schooler2.jpg' in /home/kjharnco/public_html/submit.php on line 238

Warning: chmod() [function.chmod]: No such file or directory in /home/kjharnco/public_html/submit.php on line 239

Warning: file_get_contents(images/photoalbum/submissions/schooler2.jpg) [function.file-get-contents]: failed to open stream: No such file or directory in /home/kjharnco/public_html/maincore.php on line 409



Here are lines 235-240 for reference:
CodeDownload  
            $error = 3;
         } else {
            $photo_file = image_exists($photo_dest, $photo_name.$photo_ext);
            move_uploaded_file($photo_pic['tmp_name'], $photo_dest.$photo_file);
            chmod($photo_dest.$photo_file, 0644);
            $imagefile = @getimagesize($photo_dest.$photo_file);





Please help, much appreciated
Thread Information
Author
Replies
1 post
Views
1,165 times
Last Post
Last updated on 13 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.