$security_number = rand(10000,99999);
$md5 = md5($security_number);
$k = MakeImage($security_number);
function MakeImage($rand) {
$width = 85;
$height = 20;
$image = imagecreate($width, $height);
$bgColor = imagecolorallocate ($image, 235, 235, 235);
$textColor = imagecolorallocate ($image, 148, 0, 50);
// Add Random noise
for ($i = 0; $i < 6; $i++) {
$rx1 = rand(0,$width);
$rx2 = rand(0,$width);
$ry1 = rand(0,$height);
$ry2 = rand(0,$height);
$rcVal = rand(0,255);
$rc1 = imagecolorallocate($image, rand(0,255), rand(0,255), rand(100,255));
imageline ($image, $rx1, $ry1, $rx2, $ry2, $rc1);
}
// $font = imageloadfont('http://localhost/image/test.fon');
imagestring($image, 5, 20, 3, $rand, $textColor);
imagepng($image,"images/s.png");
imagedestroy($image);
}
?>
Rasmelo - Contact
 |
 |
COPYRIGHT © RASMELO TRADING. CREATED BY LOUD |
|