Umwandeln, php string auf Bild

Ich möchte konvertieren, php string in einen Bild.
Ich benutze diesen code

header("Content-type: image/png");
$string = '.the_title().';

$font  = 5;
$width  = imagefontwidth($font) * strlen($string);
$height = imagefontheight($font);

$image = imagecreatetruecolor ($width,$height);
$white = imagecolorallocate ($image,255,255,255);
$black = imagecolorallocate ($image,0,0,0);
imagefill($image,0,0,$white);

imagestring ($image,$font,0,0,$string,$black);

imagepng ($image);
imagedestroy($image)    

aber seine shows the_title als text an Stelle der Ausführung der string

InformationsquelleAutor user3646085 | 2015-10-20
Schreibe einen Kommentar