bug in gd list?

From: Date: Thu, 22 Jul 1999 15:55:22 +0000
Subject: bug in gd list?
Groups: php.version4 
Request: Send a blank email to php-version4+get-2532@lists.php.net to get a copy of this message
Hi, this little code works (img.php3?count=123) with php3, but does not work with php4 (document contains no data). why? <? Header("Content-type: image/gif"); $s = 11; $lfont = imagefontwidth(5); $lunghezza = $lfont * strlen($count)+3; $im = ImageCreate($lunghezza,20); $blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF); $black = ImageColorAllocate($im, 0,0,0); $white = ImageColorAllocate($im, 255,255,255); ImageFill($im,0,0,$white); $px = (imagesx($im)-7.5*strlen($count))/2; $font = imageloadfont("/usr/lib/tk8.0/demos/images/face.bmp"); ImageString($im,5,2,7,$count,$black); ImageGif($im) ImageDestroy($im); ?> Sul Grande Mazinger girava Linux, su Boss Robot un sistema operativo Microsoft. -- Michel <ZioBudda> Morelli michel@enter.it http://ziobudda.enter.it Italian Linux FAQ http://ziobudda.enter.it/FAQ/

« previous php.version4 (#2532) next »