Buon giorno, purtroppo mi genera l'immagine ma non inserisce il codice da digitare.
Il file del tipo di font da utilizzare è presente nella cartella.
Codice PHP:
$row $stmt->fetch(PDO::FETCH_ASSOC);
$texture imagecreatefrompng('texture.png');
$source imagecolorat($texturerand(0imagesx($texture)), rand(0imagesy($texture)));
$r = ($source >> 16 0xff) + 100;
$g = ($source >> 0xff) + 150;
$b = ($source 0xff) + 150;
$text_color imagecolorallocate($texture$r$g$b);
//$font = imageloadfont('automatic.gdf');
$font imageloadfont('verdana.gdf');
imagestring($texture$font, (imagesx($texture) - strlen($row['captcha']) * 25)/ 22,  $row['captcha'], $text_color);
imagepng($texture);
imagedestroy($texture); 
L'immagine png texture.png la trova e me la fa vedere, il tipo di font no.
Sapete come mai?
Grazie mille.

PS: la versione del php è 5.1.6