<?
error_reporting(0);
session_start();
function rand_string( $length ) {
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
$kod = rand_string(5);
$_SESSION['guvenlik_kodu']=$kod;
$image_width = 200;
$image_height = 75;
$im = imagecreatetruecolor($image_width, $image_height);
imagealphablending($im,false);
$col=imagecolorallocatealpha($im,255,255,255,127);
imagefilledrectangle($im,0,0,$image_width,$image_height,$col);
imagealphablending($im,true);
$maroon = imagecolorallocate($im, 176, 48, 96);
imagettftext($im, 30, 0, 5,50, $maroon, "Font/arial.ttf", $_SESSION['guvenlik_kodu']);
header('Content-Type: image/png');
imagealphablending($im,false);
imagesavealpha($im,true);
imagepng($im);
imagedestroy($im);
fclose($read);
?>böyle yaptım ama acilan üyelik sayfasinda image gorunmuyor.. neden olabilir