php file upload permissions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tolkienarda
    Contributor
    • Dec 2006
    • 316

    php file upload permissions

    hi all

    i am reciving the following errors
    Code:
    [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
    [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
    [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
    when uploading a file and using the move_uploaded_f ile 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
  • prashanth023
    New Member
    • Apr 2007
    • 13

    #2
    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

    Comment

    • tolkienarda
      Contributor
      • Dec 2006
      • 316

      #3
      ok thanks

      eric

      Comment

      Working...