关于PHP利用GD库图像输出问题

如果需要在浏览器鈡直接输出图片

需要在imagepng函数前添加header("Content-type:image/png");

如果在img标签中调用就不需要添加header("Content-type:image/png");

posted @ 2018-04-28 17:18  Double Two  阅读(158)  评论(0编辑  收藏  举报