[請益] GD函數輸出圖片
我想請問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
討論串 (同標題文章)
以下文章回應了本文 (最舊先):
完整討論串 (本文為第 1 之 4 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章