※ 引述《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