The Little Guy Posted January 25, 2007 Share Posted January 25, 2007 How can I use HTML in an image?I have this:[code]<?phpheader("Content-type: image/png");$about = "YOUR IP ADDRESS IS: ".$_SERVER['REMOTE_ADDR']."<br>Text";$img_handle = ImageCreate (425, 350) or die ("Cannot Create image");$back_color = ImageColorAllocate($img_handle, 21, 128, 162);$txt_color = ImageColorAllocate($img_handle, 0, 0, 0);//ImageString($img_handle, 31, 5, 5, $number, $txt_color);ImageString($img_handle, 31, 5, 0, $about, $txt_color);Imagepng($img_handle);?>[/code]The <br> the server thinks is real text how can I make it html and not text? Link to comment https://forums.phpfreaks.com/topic/35630-html-in-an-image/ Share on other sites More sharing options...
The Little Guy Posted January 25, 2007 Author Share Posted January 25, 2007 Never Mind I got itjust add this line again and change the 0ImageString($img_handle, 31, 5, 0, $about, $txt_color); Link to comment https://forums.phpfreaks.com/topic/35630-html-in-an-image/#findComment-168757 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.