[請益] GD函數輸出圖片

看板PHP作者 (凱)時間19年前 (2006/05/15 14:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
我想請問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
文章代碼(AID): #14Q1kEKO (PHP)
文章代碼(AID): #14Q1kEKO (PHP)