开发者

save image in local machine

I have made an application that convert a text into image format now ho开发者_JAVA百科w do i save the converted image in my local machine,


I assume you are using GD image functions to create the image? So if you are already getting PHP to display the image, you can encourage the browser to download it instead by adding header('Content-Disposition: attachment; filename="filename.fileext"'); to the top of your file. This will encourage the browser to pop up a download box. The filename attribute is the name that the browser will prompt to save the image as

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜