原来那个图片就是ACDSee JFIF Image协议。但是却不显示出来。怎么办?

解决方案 »

  1.   

    if ($attach[filekind]=='gif') {
    header('Content-type: image/gif');
    header('Content-Disposition: inline; filename="' . $attach[filename].".".$attach[filekind] . '"');
    @readfile($downfile);
    exit;
    }elseif ($attach[filekind]=='jpg' or $attach[filekind]=='jpeg') {
    header('Content-type: image/jpeg');
    header('Content-Disposition: inline; filename="' . $attach[filename].".".$attach[filekind] . '"');
    @readfile($downfile);
    exit;
    }elseif ($attach[filekind]=='jfif') {
    header('Content-type: image/jfif');
    header('Content-Disposition: inline; filename="' . $attach[filename].".".$attach[filekind] . '"');
    @readfile($downfile);
    exit;
    }原来是这里面要增加这样一个jfif的,那就目前的判断而言,如果是bmp的岂不并不会被判断?我要一个一个加么?那岂不麻烦死?
      

  2.   

    该加的就加,可以通过switch语句来简化一下。