急问关于上传附件变量名的问题 原来那个图片就是ACDSee JFIF Image协议。但是却不显示出来。怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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的岂不并不会被判断?我要一个一个加么?那岂不麻烦死? 该加的就加,可以通过switch语句来简化一下。 zend studio中让源代码对齐的快捷键是什么? 真够郁闷 怎样用简单的方法php实现上一篇下一篇 很奇怪的问题,无法更新数据库 目录indexphp如何调用到首页index.php显示? mysql_pconnect("localhost","username","password") ? 急!急!急,在线等,会ORACLE+PHP的朋友快进来看看,帮个忙! phpmyadmin 问题 这是什么原因: php5.2.6中dio_read失灵 检测错误!急呀! 我是新手!!1 怎样获取页面上指定的信息
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的岂不并不会被判断?我要一个一个加么?那岂不麻烦死?