Linux系统下面 某文件夹的权限是755 里面的文件全都是644 
apache不能在root组里 我修改了文件夹是属于apache所在的组了 但是还是替换不了文件夹里的文件
是不是真的需要修改了文件的权限才能对其操作? 或者应该是怎么样的命令?
代码如下$old_file = "";
$old_file = "/folder/file.WAV";//这里是需要替换的文件,不在apache的目录下,是全局目录,绝对路径,folder是755权限,file的权限是644
$file = $_FILES['file']['tmp_name'];
if(is_uploaded_file($file)){
if(@move_uploaded_file($_FILES['file']['tmp_name'], $old_file)){
echo '<script>alert("替换成功");window.location="index.php";</script>';
}else{
echo '<script>alert("替换失败");window.location="index.php";</script>';
}
}else{
echo '<script>alert("上传失败");window.location="index.php";</script>';
}