47 && $random<58) ){ $str.=chr($random); } } return $str; } $text = $_SESSION['captcha_session']=strrand(6); header("Content-type: image/png"); $im = imagecreatefrompng("images/latar.png"); $color = imagecolorallocate($im, 0, 0, 0); $font = 'ttf/04B_03B.ttf'; $fontsize=30; imagettftext($im, $fontsize, 0, 30, 50, $color, $font, $text ); imagepng($im); imagedestroy($im); ?>