PHP:
<?
$imagekod = '';
for ($i = 0; $i < 8; $i++) {
// bu satirda random olarak karakterler seçiliyor
$imagekod .= chr(mt_rand(100,120));
$imagekod=strtoupper($imagekod);
}
// resmi hazirla
// resim boyutlari belirlendi
$height = 30;
$width = 100;
//istenen boyutta bir resim olusturuldu
$im = ImageCreate($width, $height);
//resim son renkleri ile artik hazir
$white = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 128, 0, 0);
// resme yazi yazdir.
ImageFill($im, 0, 0, $black);
// ImageLine($im, 0, 0, $width, $height, $white);
ImageString($im, 300, 15, 10, $imagekod, $white);
// resim çikisi
Header ("Content-type: image/png");
ImagePng ($im);
/* ve yartilan resim silindi. bu ne die soranlar. bi üst satirda resim görüntülendi fakat olusan temp dosyi sildik */
ImageDestroy($im);
?>