vkrmsv
By: a guest | Sep 19th, 2008 | Syntax:
PHP | Size: 1.14 KB | Hits: 42 | Expires: Never
<?php
function convert_text_image($text_input)
{
imagestring( $my_img, 4
, 0
, 0
, $text_input,$text_colour );
ob_start(); // This prevents the imagegif function from outputting to the browser.
$img_out = chunk_split(base64_encode($img_out)); // Encodes the data so that we can display this as a raw image on the browser.
$string = "\"data: image/gif;base64,".$img_out."\"";
echo "<img src=$string />";
}
$text = "example@example.com";
convert_text_image($text);
?>