Re: [請益] GD函數輸出圖片

看板PHP作者 (月季)時間19年前 (2006/05/15 14:50), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
※ 引述《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
文章代碼(AID): #14Q2IZ-D (PHP)
文章代碼(AID): #14Q2IZ-D (PHP)