$image = imagecreate(80, 22);$color_black = imagecolorallocate($image, 0, 0, 0);
$color_white = imagecolorallocate($image, 255, 255, 255);imagefill($image, 0, 0, $color_black);$random_text = $_SESSION["sess_verify_code"];imagechar($image, 4, 10, 4, $random_text[0] ,$color_white);
imagechar($image, 4, 20, 4, $random_text[1] ,$color_white);
imagechar($image, 4, 30, 4, $random_text[2] ,$color_white);
imagechar($image, 4, 40, 4, $random_text[3] ,$color_white);
imagechar($image, 4, 50, 4, $random_text[4] ,$color_white);
imagechar($image, 4, 60, 4, $random_text[5] ,$color_white);header("Content-type: image/png");
imagepng($image);