By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,831 Members | 2,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,831 IT Pros & Developers. It's quick & easy.

php file upload permissions

P: 316
hi all

i am reciving the following errors
Expand|Select|Wrap|Line Numbers
  1. [client] PHP Warning: move_uploaded_file(Virtual_Server_Administration.pdf): failed to open stream: Permission denied in /var/www/vhosts/ on line 3, referer:
  2. [client] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpqwxwot' to 'Virtual_Server_Administration.pdf' in /var/www/vhosts/ on line 3, referer:
  3. [client] PHP Notice: Undefined variable: message in /var/www/vhosts/ on line 59, referer:
when uploading a file and using the move_uploaded_file function. my code is correct because it works on my local wamp install but dosent work on my server. the above are the errors from my server
does anyone know what i need to change in my php.ini file


Apr 25 '07 #1
Share this Question
Share on Google+
2 Replies

P: 13
You need to give permisions for that folder where you are uploding the images.
i.e. write,read permissions. using cuteftp you can give.
If u do not give permissions we can not upload file.
give permission value 777
Apr 26 '07 #2

P: 316
ok thanks

Apr 26 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.