Well, you could use a image-generator.
<?php
function generate_image()
{
$image=imagecreate(64,24);
$background_color=imagecolorallocate($image,255,255,255);
for($i=0;$i<4;$i++)
{
$tmp_type=rand(0,2);
if($tmp_type==0)
{
$tmp_letter=chr(rand(65,90));
}
if($tmp_type==1)
{
$tmp_letter=chr(rand(97,122));
}
if($tmp_type==2)
{
$tmp_letter=rand(0,9);
}
$tmp_color=imagecolorallocate($image,rand(0,155),rand(0,155),rand(0,155));
imagestring($image,rand(4,5),$i*16+rand(0,4),rand(4,8),$tmp_letter,$tmp_color);
$code="$code$tmp_letter";
}
imagepng($image,"image.png");
imagedestroy($image);
return $code;
}
?>
Take a look at that script that I wrote. $code will contain the code that is generated. Here's an example how it works:
<?php
$code=generate_image();
echo "<img src=\"image.png\"> = $code";
?>