调用未定义的函数 exif_imagetype()
2022-08-30 21:33:19
我试图得到如下:Mime-Type
image-types
if(!empty($_FILES['uploadfile']['name']) && $_FILES['uploadfile']['error'] == 0){
$file = $_FILES['uploadfile']['tmp_name'];
$file_type = image_type_to_mime_type(exif_imagetype($file));
switch($file_type){
// Codes Here
}
}
但它总是给出错误 。我在这里做错了什么?Call to undefined function exif_imagetype()