?$allow_exts = array('jpg', 'jpeg', 'gif', 'png', 'txt');
/if (!in_array($file_ext, $allow_exts)) {
?echo '文件類型不符合要求,請上傳指定類型的文件';
?exit;
?}
?die;