急问关于上传附件变量名的问题 原来那个图片就是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语句来简化一下。 curl模拟post时提示Object moved to here. 请教一个查询命令 希望这里的大虾们帮个帮,解下面的代码 关于mail()问题--急需帮助 请问,我在XP上测试过的程序,放到LINUX服务器上,会出现问题。。这样的情况应该是什么造成的? php连mysql的问题(继续痛苦~~~) PHPCMS中的一个路径问题 字符集一串问题 重大发现!!!! 郁闷死我了。在EditPlus里敲错一个变量名字,我从头到尾查了一遍才找出来 检测错误!急呀! 我是新手!!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的岂不并不会被判断?我要一个一个加么?那岂不麻烦死?