作者taiwancat (月季)
看板PHP
标题Re: [请益] GD函数输出图片
时间Mon May 15 14:52:19 2006
※ 引述《xteenager (凯)》之铭言:
: <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>
: 它就会出现乱码
: 请问各位大大是什麽问题呢??
你这样输出的是一张图
你把一张图硬塞在html里面是不合理的
你把程式改成这样你就知道错在哪了
--
report.php
<?php
header("Content-type: image/png");
Imagepng($this->im);
?>
--
<html>
<body background="a1.jpg">
<table border=3 width="100%" bordercolor=blue>
<tr>
<th><center>报表</center></th>
</tr>
</table>
<img src="report.php">
</body>
</html>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.162.84.56