Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- header("Content-Type: image/png");
- $_SESSION["Captcha"]="";
- $im = @imagecreate(110, 50) or die("Cannot Initialize new GD image stream");
- $background_color = imagecolorallocate($im, 48, 128, 117);
- $text_color = imagecolorallocate($im, 176, 201, 197);
- $angka=rand(1000000, 9999999);
- $_SESSION["Captcha"].=$angka;
- imagestring($im, 20, 25, 10, $angka, $text_color);
- imagepng($im);
- imagedestroy($im);
- ?>
Add Comment
Please, Sign In to add comment