note 89897 added to function.imagefill

From: Date: Fri, 27 Mar 2009 14:03:20 +0000
Subject: note 89897 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-152520@lists.php.net to get a copy of this message
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? ---- Server IP: 212.63.193.10 Probable Submitter: 83.249.97.71 ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- https://master.php.net/note/edit/89897 Del: integrated -- https://master.php.net/note/delete/89897/integrated Del: useless -- https://master.php.net/note/delete/89897/useless Del: bad code -- https://master.php.net/note/delete/89897/bad+code Del: spam -- https://master.php.net/note/delete/89897/spam Del: non-english -- https://master.php.net/note/delete/89897/non-english Del: in docs -- https://master.php.net/note/delete/89897/in+docs Del: other reasons-- https://master.php.net/note/delete/89897 Reject -- https://master.php.net/note/reject/89897 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152520) next »