move_uploaded_file(...):无法打开流:权限在...中被拒绝...使用Mac OS X Mountain Lion [英] move_uploaded_file(...): failed to open stream: Permission denied in... Using Mac OS X Mountain Lion
本文介绍了move_uploaded_file(...):无法打开流:权限在...中被拒绝...使用Mac OS X Mountain Lion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以基本上,我有一个经典的'move_uploaded_file'语句:
So basically I have your classic 'move_uploaded_file' statement:
move_uploaded_file($_FILES['image']['tmp_name'], 'files/' . $_FILES['image']['name']);
但是我在OS X Mountain Lion上得到了它:
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?
推荐答案
在MAC OS X的终端中,请使用以下命令:
in MAC OS X's terminal ,use this commande :
CHMOD 775 yourFilesPath
775:群组的标准文件共享模式.
775:Standard file sharing mode for a group.
这篇关于move_uploaded_file(...):无法打开流:权限在...中被拒绝...使用Mac OS X Mountain Lion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文