//....图片处理ob_start();
imagejpeg($ni);
$t_fsize = strlen(ob_get_contents());Header ("Content-type: application/octet-stream");
Header ("Content-Length: ".$t_fsize);
$exp=explode(".",$row[res_disp_name]);
$exp=strlen($exp[sizeof($exp)-1]);
$disp_name=substr($row[res_disp_name],0,-$exp)."jpg"; Header ("Content-Disposition: attachment; filename=".$disp_name);ob_end_flush();
?>
imagejpeg($ni);
$t_fsize = strlen(ob_get_contents());Header ("Content-type: application/octet-stream");
Header ("Content-Length: ".$t_fsize);
$exp=explode(".",$row[res_disp_name]);
$exp=strlen($exp[sizeof($exp)-1]);
$disp_name=substr($row[res_disp_name],0,-$exp)."jpg"; Header ("Content-Disposition: attachment; filename=".$disp_name);ob_end_flush();
?>
解决方案 »
- 今天去面试php程序员,有一道填空题,尼玛...
- 请教一个基础的问题:关于用户登陆的页面(不涉及到数据库)
- php开发网站的初级问题
- 数据添加(急)
- 求教数据库设计问题(超初级)
- 求一rewrite rule
- chinaRen首页上可以拖动的表格是如何实现的?
- 如何将在线编辑器所得的全部内容(文字、图片、flash)保存到WEB服务器?
- 为什么调用imagecreate()时提示Call to undefined function: imagecreate()
- 请问在php中如何删除一个目录下的所有文件?就是清空一个目录?
- 大家能不能帮我看看这两段代码 ,就这70分了
- 如何处理半个汉字的问题?
哈,是不是有点过分呀!