- header: documentation ( source)
<?php
$im = imagecreatetruecolor(200, 200);
$text_color = imagecolorallocate ($im, 0, 0, 0);
imagestring ($im, 3, 5, 15, "hello uto4ka", $text_color);
header('Content-type: image/png');
imagepng($im, NULL, 0, NULL);
?>