<?php

 

session_start();
// $text = "s-c".rand(10000,99999);
$text= substr( md5(uniqid (rand())), 0, 7 );
$_SESSION["captchacode"] = $text;
$height = 25;
$width = 75;
$image_p = imagecreate($width, $height);
$black = imagecolorallocate($image_p, 250,250, 250);
$white = imagecolorallocate($image_p, 0, 0, 0);
$font_size = 14;
imagestring($image_p, $font_size, 3, 5, $text, $white);
imagejpeg($image_p, null, 80);


?> 

