I have some problems with php_gd2.
When i use this script for example:
<?PHP
$image = imagecreate(300,150);
$farbe_body=imagecolorallocate($image,0,0,0);
$font_c = imagecolorallocate($image,120,120,120);
imagecolortransparent($image,$farbe_body);
imagettftext($image, 36, 28, 30, 140, $font_c, "./Wedtxtn.ttf", "test");
header("Content-Type: image/png");
imagepng($image,"",100);
?>
I only get the following output:
Warning: 0ž4 in c:\programme\apache group\apache\htdocs\scripts\schrift.php on line 6
Warning: Cannot add header information - headers already sent by (output started at c:\programme\apache group\apache\htdocs\scripts\schrift.php:6) in c:\programme\apache group\apache\htdocs\scripts\schrift.php on line 7
‰PNG IHDR,–•'‘PLTExxxF½Š×tRNS7áèðIDATxœíÁ  ÷Om7 àÉÚóBÖIEND®B`‚
Same with JPEG and the header-information set to the second line!
With the old php_gd all works fine.
My Installation is a standard WAMP.
Apache is 1.3.11 and PHP is 4.1.1