e allora perche' questo non va?
codice:<? ob_start(); session_start(); $font = "army.ttf"; $size = 39; $text = $_SESSION['verification_image_text']; if($text==""){ echo "Error!"; }else{ $background = rand(1,2); $angle = rand(-2,2); $im = imagecreatefrompng("http://www.codeworld.it/images/security_images_backgrounds/bg" . $background . ".png"); $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 204,204,204); // Display the image header("Content-type: image/png"); imagettftext($im, $size, $angle, 35, $size, $black, $font, $text); imagepng($im); imagedestroy($im); } ?>

Rispondi quotando