我的获取图片类型的代码是如下,但是报错,哪位知道怎么解决?
$filename = "UI_ad.jpg"; list ($src_w,$src_h) = getimagesize($filename); $mime=image_type_to_mime_type($imagetype); echo $mime; 报错 Notice: Undefined variable: imagetype in D:\PHP\SHOP\e-shop\test\resizeImage1.php on line 10 application/octet-stream