日期:2014-05-17 浏览次数:20603 次
<?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"');
------解决方案--------------------
直接下载应该是用header跳到图片的网址上
例如图片的路径是http://test.com/pic/test1.jpg
要下载的话
header("Location:http://test.com/pic/test1.jpg")
------解决方案--------------------