简体   繁体   中英

Imagick saving from browser as a php file

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 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"');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM