<?php
//visit http://www.iceteks.com/articles.php?act=view&article=textsig&p=2& for the code
header("Content-type: image/png");
$string2 = "Mausephant - Dörfer $dörfer"; // Die variable irgendwie rausfinden
//put your image name here (must be a png)
$im = imagecreatefrompng("yourfile.png"); // <== Hier dein Bild
//change your text color here ( must be the hex value) ex. 255,255,255 would be white
$color = imagecolorallocate($im, 255, 255, 255);
//change your X & y coordinates here to place the text on your image where you want it
//(these will center the text on a 400x100 image)
$px=120;
$py=30;
//no need to touch this unless you know what your doing
imagestring($im, 3, $px, $py, $string, $color);
imagestring($im, 2, $px, $py+12, $string2, $color);
imagepng($im);
imagedestroy($im);
?>