GDlib ##¤¤%%#¤!!!
Hej!Nu har prøvet en milliard millioner gange at finde fejlen i følgende kode:
<?
Header("Content-type: image/png");
if ($text) {
$hfont = "/var/www/html/hotels/1go/hat/chiller.ttf";
$im = imagecreatefrompng("hat.png");
$hatf = ImageColorAllocate($im,252,134,67);
$tekf = imagecolorallocate($im,40,20,3);
$sizeh=ImageTTFBBox(30,0,$hfont,$text);
$sizet=ImageTTFBBox(22,0,$hfont,$text);
$hpos = $sizeh/2-200;
$tpos = $sizet/2-200;
$text = strtoupper($text);
$btext = $text." ER EN HAT MED ØRER!";
imagettftext ($im, 30, 0, 120, $hpos, $hatf, "/var/www/html/hotels/1go/hat/chiller.ttf", $text);
imagettftext ($im, 22, 0, 240, $tpos, $hatf, "/var/www/html/hotels/1go/hat/chiller.ttf", $btext);
Imagepng($im);
ImageDestroy($im);
}
?>
Men jeg kan sgu ikke finde den... Kan i?
I kan teste den på http://hat.1go.dk/index.php
