Veronica's code for Drawing Rotated Text
SLAVE CODE FOLLOWS
<?php
// PHP slave script drawing rotated text
// === create background work area
// create a blank image that is 160 by 160 pixels in size
$image = imagecreatetruecolor(160, 160);
// set a color RGB (250, 225, 250), which is PINK
$pink = imagecolorallocate($image, 250, 225, 250);
// fill the entire image
imagefilledrectangle($image, 0, 0, 160, 160, $pink);
// set the foreground RGB color for the text
// ( 10, 10, 180) is a DARK BLUE
$color = imagecolorallocate($image, 10, 40, 180);
$font = 'fonts/arial.ttf';
$str = " Extra Super!";
// combine the background image with a rotated text using the following specs
// (image, font-size, angle-rotation, x-position, y-position, text-color, font-name, text)
imagettftext($image, 24, 45, 15, 160, $color, $font, $str);
// tell the server that a GIF image follows
header("Content-Type: image/gif");
// display the image
imagegif($image);
// destroy the image (i.e., releases memory)
imagedestroy($image);
?>