note 18035 added to ref.image

From: Date: Tue, 08 Jan 2002 10:42:20 +0000
Subject: note 18035 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-24529@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: 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`‚ 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 -- http://www.php.net/manual/en/ref.image.php http://master.php.net/manage/user-notes.php?action=edit+18035 http://master.php.net/manage/user-notes.php?action=delete+18035 http://master.php.net/manage/user-notes.php?action=reject+18035

« previous php.notes (#24529) next »