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

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

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

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

猜你喜欢

转载自www.cnblogs.com/gaoking/p/8968879.html