作者xteenager (凯)
看板PHP
标题[请益] GD函数输出图片
时间Mon May 15 14:16:20 2006
我想请问GD函式绘图的问题
我用GD函数画了一张图
Header("Content-type: image/png");
Imagepng($this->im);
然後用上面那段语法输出
在完全只有PHP码的时候是可以正常输出的
但是只要加入了HTML码 例如
<html>
<body background="a1.jpg">
<table border=3 width="100%" bordercolor=blue>
<tr>
<th><center>报表</center></th>
</tr>
</table>
<?
Header("Content-type: image/png");
Imagepng($this->im);
?>
</body>
</html>
它就会出现乱码
请问各位大大是什麽问题呢??
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.193.29