All pastes #614519 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-11 16:35 UTC
rendered paste body
<?
header("Content-type: image/png");
$captcha	= imagecreatetruecolor(200, 25);
$width = 200;
$black = imagecolorallocate($captcha, 30, 240, 255 ); 
// imagefill($captcha, 0, 0, $black);
$white = imagecolorallocate($captcha, 0, 0, 0);
imagestring($captcha, 5, 2, 6, "Hello", $black);
$x = rand(0, $width);
$y = rand(0, $width);
$y1 = rand(0, $width);
$x1 = rand(0, $width);
imageline($captcha, $x, $y, $x1, $y1, $white);
imagepng($captcha);
imagedestroy($captcha);
?>