Ich habe folgenden PHP-Code:
PHP
		
					
				<?php
header("Content-type: image/png");
$zitat = array(
'Alkohol ist keine Lösung, Alkohol ist ein Destilat',
'Selbstmord löst keine Probleme, er beendet sie nur',
'Lieber heimlich schlau als unheimlich doof.',
'Auf die Arbeit schimpft man nur so lange, bis man keine mehr hat“');
);
shuffle($zitat);
$text = "Random-Zitat:\n".$zitat[0];
//Config
$imagewidth = 300;
$imageheight = 100;
$fontsize = "10";
$backgroundcolor = "ffffff";
$textcolor = "000000";
//Erweiterte Einstellungen
$fontangle = "0";
$font = "font.ttf";
//Generierung
if( eregi( "([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})", $backgroundcolor, $bgrgb ) )
{$bgred = hexdec( $bgrgb[1] );   $bggreen = hexdec( $bgrgb[2] );   $bgblue = hexdec( $bgrgb[3] );}
if( eregi( "([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})", $textcolor, $textrgb ) )
{$textred = hexdec( $textrgb[1] );   $textgreen = hexdec( $textrgb[2] );   $textblue = hexdec( $textrgb[3] );}
$im = imagecreate( $imagewidth, $imageheight );
$bgcolor = imagecolorallocate($im, $bgred,$bggreen,$bgblue);
$fontcolor = imagecolorallocate($im, $textred,$textgreen,$textblue);
$box = @imageTTFBbox($fontsize,$fontangle,$font,$text);
$textwidth = abs($box[4] - $box[0]);
$textheight = abs($box[5] - $box[1]);
$xcord = "10";
$ycord = "19";
imagettftext ( $im, $fontsize, $fontangle, $xcord, $ycord, $fontcolor, $font, $text );
imagepng($im);
imagedestroy($im);
?>
Nun habe ich eine Frage: Was muss ich da umstellen oder abändern, damit ich in $text HTML.Code verwenden kann, und der dann zu einen Bild wird?
Grüsse, Ralf
 
		 
		
		
	
 Aber danke für eure Antworten.
 Aber danke für eure Antworten.