Codice PHP:
<?php
session_start
();

if (isset(
$_SESSION['chiave'])) {

  
header("Content-type: image/png");

  
$string $_SESSION['chiave'];

  
$img imagecreatefrompng("bg.png");

  
$color imagecolorallocate($img09060);

  
imagestring($imgrand(4,5), 1510$string$color);

  
imagepng($img);

  
imagedestroy($img);

}
?>