Bug #3123: GD-1.7.3 Can't create png on the fly & send to browser.
| From: | dloftis at corp dot olin dot com | Date: | Thu, 06 Jan 2000 20:51:47 +0000 |
| Subject: | Bug #3123: GD-1.7.3 Can't create png on the fly & send to browser. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14317@lists.php.net to get a copy of this message | ||
From: dloftis@corp.olin.com
Operating system: QNX
PHP version: 3.0.13
PHP Bug Type: Parser error
Bug description: GD-1.7.3 Can't create png on the fly & send to browser.
Actually, php-4.0b3 with gd-1.7.3 libgd.a on QNX linked into apache_1.3.9. Basic php works. The
script below complains 'Content header already sent'. The below should output a simple
rectangle to the browser??
<HTML>
<HEAD> TEST PAGE </HEAD>
<BODY>
<?php
Header("Content-type: image/png");
$im=imagecreate(150,30);
$white=ImageColorAllocate($im,255,255,255);
$black=ImageColorAllocate($im,0,0,0);
ImageFilledRectangle($im,0,0,150,30,$white);
ImagePng($im);
ImageDestroy($im);
?>
</BODY>
</HTML>