siofs Posted January 19, 2007 Share Posted January 19, 2007 hiya Am very very stuck!!Did html form with php page to upload files onto server. Originally created locally and worked fine, when i uploaded everything and tried it I got the following error...uploads/cover letter2.docWarning: move_uploaded_file(uploads/cover letter2.doc) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/joiffco/public_html/MembersArea/sharedlearning/upload_file.php on line 14Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpAjD0zL' to 'uploads/cover letter2.doc' in /home/joiffco/public_html/MembersArea/sharedlearning/upload_file.php on line 14There was an error uploading the file, please try again!Can't figure out why it's not working changed permissions on php file to 755 and it's still giving same error!!Help please some one!!!Thanks ;D Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 23, 2007 Share Posted January 23, 2007 Your uploads/ directory needs to be chmod 777-steve Quote Link to comment Share on other sites More sharing options...
the_oliver Posted January 23, 2007 Share Posted January 23, 2007 It can be 775 if the file is owned by the webserver group. Will also give a little more security on the files you put up there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.