我有一个输出png图像的php / imagick脚本,但当我从浏览器中保存它时,它保存为文件名:index.php
我希望它在你点击另存为时保存为png您的浏览器中的图片。
link:http://www.halogamertags.com/signatures/index.php?player=yoinked%20ya
我该怎么做?
答案 0 :(得分:4)
header('Content-Disposition: attachment; filename="filename.png"');