tallberg Posted December 18, 2006 Share Posted December 18, 2006 Hi this is the message i get from my file upload script. The script works locally. I assume it is server issue?Warning: move_uploaded_file(uploaded/57Philips-23-inch-ME5P-LCD-TV-13774.jpg): failed to open stream: Permission denied in /home/httpd/vhosts/edfreuse.co.uk/httpdocs/catalogue2/updateCat.php on line 80Warning: move_uploaded_file(): Unable to move '/tmp/phpTilxRL' to 'uploaded/57Philips-23-inch-ME5P-LCD-TV-13774.jpg' in /home/httpd/vhosts/edfreuse.co.uk/httpdocs/catalogue2/updateCat.php on line 80Error: File not moved successfully!Thanks in advance for help. I just want to say ive been using this website for a month or so and it been a great help. Quote Link to comment https://forums.phpfreaks.com/topic/31101-file-upload-problem/ Share on other sites More sharing options...
redbullmarky Posted December 18, 2006 Share Posted December 18, 2006 you need to change the permissions (with chmod) of the destination directory to writable (777 will do the trick) Quote Link to comment https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143600 Share on other sites More sharing options...
HuggieBear Posted December 18, 2006 Share Posted December 18, 2006 If you don't fully understand file permissions it's not advisable to just change them to 777.Maybe something like 766 would be more appropriate. This of course is assuming you're on a *nix server as opposed to a Windows server.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143609 Share on other sites More sharing options...
tallberg Posted December 18, 2006 Author Share Posted December 18, 2006 Got is sorted.Can you recomend any reading matterial about apache. Permision: users, groups that sort of thing. Im a beginner.I just want to say as im feeling all christmasy -- well not realy christmasy-- but very greatefull for the help that i have received from this community.So, thanks tallberg in windy north east of England. Quote Link to comment https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143702 Share on other sites More sharing options...
HuggieBear Posted December 18, 2006 Share Posted December 18, 2006 Here's a really quick and easy guide to file permissions.http://www.htmlite.com/php042.phpRegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143706 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.