0
我有一個PHP/imagick腳本,輸出一個PNG圖像,但當我去保存它從瀏覽器它保存爲文件名:index.php
我希望它保存爲PNG你點擊保存爲瀏覽器中的圖像。Imagick從瀏覽器保存爲一個PHP文件
鏈接:http://www.halogamertags.com/signatures/index.php?player=yoinked%20ya
我怎麼能這樣做?
我有一個PHP/imagick腳本,輸出一個PNG圖像,但當我去保存它從瀏覽器它保存爲文件名:index.php
我希望它保存爲PNG你點擊保存爲瀏覽器中的圖像。Imagick從瀏覽器保存爲一個PHP文件
鏈接:http://www.halogamertags.com/signatures/index.php?player=yoinked%20ya
我怎麼能這樣做?
header('Content-Disposition: attachment; filename="filename.png"');