Jump to content

HTML in an Image


The Little Guy

Recommended Posts

How can I use HTML in an image?

I have this:
[code]
<?php
header("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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.