开发者

Imagick saving from browser as a php file

开发者 https://www.devze.com 2023-03-03 00:40 出处:网络
I have a php/imagick script that outputs a png image but when I go to save it from the browser it saves as the file name: index.php I want it to save as a png when you click save as 开发者_C百科image

I have a php/imagick script that outputs a png image but when I go to save it from the browser it saves as the file name: index.php I want it to save as a png when you click save as 开发者_C百科image in your browser.

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

How can I do that?


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

精彩评论

暂无评论...
验证码 换一张
取 消