Re: PHP 4.0 Bug #7743: gd lib problems displaying dynamic images

From: Date: Fri, 10 Nov 2000 18:57:50 +0000
Subject: Re: PHP 4.0 Bug #7743: gd lib problems displaying dynamic images
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37705@lists.php.net to get a copy of this message
Try it with Netscape instead of IE. IE is and always has been a very broken web browser. On 10 Nov 2000 paul.d.rowlands@delphiauto.com wrote: > From: paul.d.rowlands@delphiauto.com > Operating system: Windows NT 4 > PHP version: 4.0.3pl1 > PHP Bug Type: *Function Specific > Bug description: gd lib problems displaying dynamic images > > The following code does not work with php4.0.3p1 under windows NT. > It shows complete garbage text on the display. > However if you save the image to a png file and use <img src=$filename> tag it will work. > > <?php > Header("Content-Type: image/png"); > $im = ImageCreate(100,100); > $black = ImageColorAllocate($im,0,0,0); > $white = ImageColorAllocate($im,255,255,255); > > ImageLine($im,0,0,99,99,$white); > > > if(ImageTypes() & IMG_PNG) {echo "PNG SUPPORTED";} > if(ImageTypes() & IMG_GIF) {echo "GIF SUPPORTED";} > ImagePng($im); > ImageDestroy($im); > ?> > > > -- > Edit Bug report at: http://bugs.php.net/?id=7743&edit=1 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#37705) next »