我正在尝试获取上传文件的错误,但出现以下错误:
if(isset($_FILES['fichier']) && $_FILES['fichier']['error'] == 0)
{
//do stuff here, no problem
}
//get an error on this line "Notice: Undefined index: fichier in .."
elseif($_FILES['fichier']['error'] != 0)
{
}
else
{
echo 'no file selected or an error occured with the page.';
}
我需要获取错误代码(1 到 8)