Maybe you cannot access the directory you moved file into because of no permit to write.

解决方案 »

  1.   

    php.ini
    move_uploaded_file? false ?注: move_uploaded_file() 对安全模式和 open_basedir 都是敏感的。不过,限制只针对 destination 路径,因为允许移动上传的文件名 filename 可能会与这些限制产生冲突。move_uploaded_file() 仅作用于通过 PHP 上传的文件以确保这个操作的安全性。目录权限要注意,0654
      

  2.   

    各位大虾,我上传的PHP文件在公司租的服务器中,以下是我在公司网站中上传产品图片的错误信息:
    Warning: move_uploaded_file(/home/gameplant/public_html/xiaoyouxi/images/supplierImages/2005187.jpg): failed to open stream: Permission denied in /home/gameplant/public_html/xiaoyouxi/supplier/supplier-handle-upload-production.php on line 59Warning: move_uploaded_file(): Unable to move '/var/tmp/phpVZySNt' to '/home/gameplant/public_html/xiaoyouxi/images/supplierImages/2005187.jpg' in /home/gameplant/public_html/xiaoyouxi/supplier/supplier-handle-upload-production.php on line 59
    moved file failed如果是权限的问题,我怎么去解决,在线急等
      

  3.   

    这个应该是权限不够。把(/home/gameplant/public_html/xiaoyouxi/images/supplierImages/属性改为777
      

  4.   

    谢谢各位,确实是权限的问题,我把服务器中的image的属性修改一下就可以了,非常感谢大家