Jump to content

Recommended Posts

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 80

Warning: 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 80

Error: 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.
Link to comment
https://forums.phpfreaks.com/topic/31101-file-upload-problem/
Share on other sites

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.

Regards
Huggie
Link to comment
https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143609
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/31101-file-upload-problem/#findComment-143702
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.