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

tolkienarda
100+
P: 316
hi all

i am reciving the following errors
Expand|Select|Wrap|Line Numbers
  1. [client 64.39.0.38] PHP Warning: move_uploaded_file(Virtual_Server_Administration.pdf): failed to open stream: Permission denied in /var/www/vhosts/steppinupwebdesign.com/httpdocs/cms/emailer/attatchment.php on line 3, referer: http://steppinupwebdesign.com/cms/emailer/form.php
  2. [client 64.39.0.38] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpqwxwot' to 'Virtual_Server_Administration.pdf' in /var/www/vhosts/steppinupwebdesign.com/httpdocs/cms/emailer/attatchment.php on line 3, referer: http://steppinupwebdesign.com/cms/emailer/form.php
  3. [client 64.39.0.38] PHP Notice: Undefined variable: message in /var/www/vhosts/steppinupwebdesign.com/httpdocs/cms/emailer/attatchment.php on line 59, referer: http://steppinupwebdesign.com/cms/emailer/form.php
  4.  
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

thanks

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


P: 13
Hi,
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

tolkienarda
100+
P: 316
ok thanks

eric
Apr 26 '07 #3

Post your reply

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