note 89897 rejected from function.imagefill by danbrown
| From: | danbrown@php.net | Date: | Fri, 27 Mar 2009 15:42:56 +0000 |
| Subject: | note 89897 rejected from function.imagefill by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152533@lists.php.net to get a copy of this message | ||
Note Submitter: robin dot aulin at gmail dot com
----
The example code don't work for me, I get a black square, but on a diffrent site from the same
webhost it works and he gets a red square
this is the code both use
<?php
$im = imagecreatetruecolor(100, 100);
// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
Any ideas?