<?php
session_start ();
$crypt = sha1(microtime () * mktime ());
$str = substr ($crypt,0,4);
$img = imagecreatefrompng ("immagine.png");
$color = imagecolorallocate ($img, 0, 0, 0);
$linea = imagecolorallocate ($img, 239, 239, 239);
imageline ($img,0,0,49,39,$linea);
imageline ($img,40,0,64,29,$linea);
imagestring ($img, 5, 20, 10, $str, $color);
$_SESSION['control'] = sha1($str);
header ("Content-type: image/png");
imagepng($img);
?>
ciao ragazzi, mi potreste dire l'errore che c'è in questo captcha? Mi visualizza nel browser che l'immagine è danneggiata e che c'è un errore (quando vado ad aprirla)