php如何使用header直接下载图片? 不是压缩包,而是图片格式直接下载,如jpg、png格式图片用header函数直接下载,求解 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1,打header2, 输出图片不会? php manual : gd 搜索 Content-Disposition HTTP<?php// We'll be outputting a PNG imageheader('Content-type: image/png');// It will be called hello.pngheader('Content-Disposition: attachment; filename="hello.png"'); 直接下载应该是用header跳到图片的网址上例如图片的路径是http://test.com/pic/test1.jpg要下载的话header("Location:http://test.com/pic/test1.jpg") curl 的问题 请教一个form里action的问题。 求助一个sql语句 php如何获取客户端浏览器类型 子框架获得父框架url 最近困惑,迷茫过,不知道自己是否还要继续,如果要继续还需要补充什么知识? 使用框架的页面怎么生成静态页? 菜鸟遇到一个想了几天的问题 要大邮箱的看看,200M IIS配置 php中mysql_query 返回值出错 php post请求
2, 输出图片不会? php manual : gd
<?php
// We'll be outputting a PNG image
header('Content-type: image/png');
// It will be called hello.png
header('Content-Disposition: attachment; filename="hello.png"');
例如图片的路径是http://test.com/pic/test1.jpg要下载的话
header("Location:http://test.com/pic/test1.jpg")