note 18035 rejected from ref.image by zak
| From: | zak@php.net | Date: | Tue, 08 Jan 2002 10:53:29 +0000 |
| Subject: | note 18035 rejected from ref.image by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24531@lists.php.net to get a copy of this message | ||
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: 04 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`
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