How do I create a image with php using html for an example i want to make
<?
$message = "Welcome";
echo "<table width=\"435\" height=\"75\" border=\"2\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ff3300\" bordercolor=\"#FF6600\" style=\"border-style:Dashed;\"><tr><td><center><h1><b> $message </b></h1></center></td></tr></table>";
?>
into an image
i have this code i like it but it only dose text
<?php
header ("Content-type: image/png");
function imageCreateTransparent($x, $y) {
$imageOut = imagecreate($x, $y);
$colourBlack = imagecolorallocate($imageOut, 0, 0, 0);
imagecolortransparent($imageOut, $colourBlack);
return $imageOut;
}
$im = imageCreateTransparent(70, 23)
or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 5, 3, 3, "Welcome", $text_color);
imagepng($im);
imagedestroy($im);
?>
dose any one know how to do my task?
[edited by: MrGecko at 8:45 pm (utc) on Oct. 19, 2006]