oi, here's my code:
<?php
Header ('Content-type: image/jpeg');
Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
Header('Pragma: no-cache');
$textfile ="quotes.txt"; // change to the filename/path of your file with quotes.
$quotes = file("$textfile");
$quote = rand(0, sizeof($quotes)-1);
$getquote = wordwrap($quotes[$quote], 55, "\n", 1);
$ipad = getenv("REMOTE_ADDR");
$dns = strtolower(@gethostbyaddr(getenv("REMOTE_ADDR")));
$today = date("m-d-Y");
// create the image
$image = imagecreatefromgif("about-bg.gif");
// set the colours
$cool = imagecolorallocate($image, 87, 87, 87);
$black = imagecolorallocate($image, 0, 0, 0);
$white = imagecolorallocate($image, 255, 255, 255);
$red = imagecolorallocate($image, 255, 0, 0);
$grey = imagecolorallocate($image, 204, 204, 204);
$green = imagecolorallocate($image, 206, 129, 18);
$blue = imagecolorallocate($image, 0, 0, 255);
// counter
$viewss = file("views.txt");
$views = $viewss[0]; $views++;
$fp = fopen("views.txt", "w");
fwrite($fp, $views);
fclose($fp);
$info = "$today - You are $dns ($ipad)";
$counter = "$views people informed - © 2003 Phazm Graphics - http://www.phazm.net/";
// define geek code
$nerd = $getquote;
// line style line
$line = "___________________________________________________________";
// set the font and print text
$font = 'verdana.ttf';
ImageTTFText ($image, 10, 0, 45, 35, $white, $font, $nerd);
ImageTTFText ($image, 8, 0, 27, 126, $white, $font, $info);
ImageTTFText ($image, 8, 0, 27, 130, $white, $font, $line);
ImageTTFText ($image, 8, 0, 27, 143, $white, $font, $counter);
// output and destroy
imagepng($image);
imagedestroy($image);
?>