If you have the GD and freetype extensions installed you can use ImageString to do something like this:
<?php
header ("Content-type: image/png");
$im = @ImageCreate (200, 500)
or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "phpwebhosting.com gd examples and tests", $text_color);
ImagePng ($im);
?>
Hope this helps!
-Greg
phpwebhosting.com