<?php
session_start();
header("content-type:image/png") //??? ???? ??? ?????
$image_width=70; ??? ??
$image_height=18; //??? ?? ??
srand(microtime()*100000) //??? ?? ??
for($i=0;$i<4;$i++); //4?? ??? ???? ??
$new_number.=dechex(rand(0,15));
}
$_SESSION[check_checks]=$new_number; //?? ?? ????? SESSION ??? ???.
$num_image =imagecreate($image_width,$image_height); //??? ???
imagecolorallocate($num_image,255,255,255) //??? ?? ??
for($i=0;$i<strlen($ _SESSION[check_checks]); $i++){ //SESSION ???? ?? ??? ?? ??
$font=mt_rand(3,5) ); //?? ?? ?? ?
imagestring($num_image,$font,$x,$y,$_SESSION[check_checks][$i],$color); //?? ?? ??
}
imagepng ($num_image);
??? ??? ????.
header("content-type:image/png")? ?? ?? ???? ??? ?? ?????.
????? ??? ???? ???? imagepng() ?? ?? ????? ??? ?? ??? ? ????.