doujumiao5024 2013-08-22 02:33
浏览 99
已采纳

move_uploaded_file(...):无法打开流:权限被拒绝...使用Mac OS X Mountain Lion

So basically I have your classic 'move_uploaded_file' statement:

move_uploaded_file($_FILES['image']['tmp_name'], 'files/' . $_FILES['image']['name']);

But I am getting this on my OS X Mountain Lion:

move_uploaded_file(...): failed to open stream: Permission denied in... 

How can I change the permissions so I can move it?

  • 写回答

2条回答 默认 最新

  • doumiang2297 2013-08-22 02:35
    关注

    in MAC OS X's terminal ,use this commande :

      CHMOD 775 yourFilesPath
    

    775:Standard file sharing mode for a group.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?