1<?php
2header("Content-Type: image/png");//change the php file to an image
3$im = @imagecreate(110, 20)
4 or die("Cannot Initialize new GD image stream");//creates an image with the resolution x:110 y:20
5$background_color = imagecolorallocate($im, 0, 0, 0);//create an color with RGB
6$text_color = imagecolorallocate($im, 233, 14, 91);
7imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);//draws text to the image with the font:1 xpos:5 ypos:5
8imagepng($im);//sends the image data to the user
9imagedestroy($im);//destroys the image from the server
10?>