想象一下从浏览器中保存为php文件

时间:2011-05-04 15:50:08

标签: php imagemagick

我有一个输出png图像的php / imagick脚本,但当我从浏览器中保存它时,它保存为文件名:index.php我希望它在你点击另存为时保存为png您的浏览器中的图片。

link:http://www.halogamertags.com/signatures/index.php?player=yoinked%20ya

我该怎么做?

1 个答案:

答案 0 :(得分:4)

header('Content-Disposition: attachment; filename="filename.png"');