0
注意:只有變量應當參照在 C下通過:\ XAMPP \ htdocs中\ PHP \ processor.php上線43爲什麼PHP得到這個通知
43行是:$擴展=結束(爆炸(「。」, strtolower($ _ FILES ['photoUpload'] ['name'])));
$allowedExts = array("gif", "jpeg", "jpg", "png");
$extension = end(explode(".", strtolower($_FILES['photoUpload']['name'])));
$allowedType = array("image/gif", "image/jpeg", "image/jpg", "image/png");
if(!in_array($_FILES['photoUpload']['type'], $allowedType))
die ("<br>Unsupported file type!");
if(!in_array($extension, $allowedExts))
die ("<br>Unsupported file extension!");
非常漂亮的措辭 –