0
faultCode1faultStringWarning:move_uploaded_file(../infos/upload/photo_1-immo65luz-1415182268.png) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/eq8115/eq79237/html/application_v2/index.php on line 75faultCode1faultStringWarning:move_uploaded_file() [function.move-uploaded-file]: Unable to move '/home/tmp/phpMTDMSQ' to '../infos/upload/photo_1-immo65luz-1415182268.png' in /home/eq8115/eq79237/html/application_v2/index.php on line 75modif
當我嘗試在管理面板中添加照片時,出現上述錯誤。上傳圖片時出錯
這是用於上傳部分代碼:
foreach ($_FILES as $k=>$photo){
//---- changement de nom
$nom_file = str_replace(".","_",$photo['name']);
$t_nom = split("_",$nom_file);
$ext = $t_nom[count($t_nom)-1];
$nom = "upload/".$k."-".$_SESSION['admin']."-".time().".".$ext;
if (move_uploaded_file($_FILES[$k]['tmp_name'],"../infos/$nom"))
{
$_POST[$k] = $nom;
}
}
誰能幫幫我?
檢查用戶-permission你所上傳的文件夾目錄的用戶權限。 – 2014-11-05 10:24:28