<?
$num = Rand (1,6);
switch ($num)
{
case 1:
$txt = "Time is money";
break;
case 2:
$txt = "An apple a day keeps the doctor away";
break;
case 3:
$txt = "Elmo loves dorthy";
break;
case 4:
$txt = "Off to see the wizard";
break;
case 5:
$txt = "Tomorrow is another day";
break;
case 6:
$txt = "PHP is cool!";
}
header("Content-type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, $txt, $text_color);
imagepng($im);
imagedestroy($im);
?>