|
Posted by Ryan Knopp on 11/04/06 02:54
So if I create a gif image using the source below the image won't
display at all in IE. I just get a red X. It displays right with
Firefox and it also displays okay if i open it up in Paint or *name your
image software here*. Why won't it display in IE? Is there something
I need to do special to make it work?
#!/usr/bin/php
<?
$DOTS = 5000;
$WIDTH = 6300;
$HEIGHT = 6300;
$im = imagecreatetruecolor($WIDTH, $HEIGHT);
for($i = 0; $i < $DOTS; ++$i){
imagesetpixel($im , rand(1, $WIDTH - 1), rand(1, $HEIGHT - 1),
imagecolorallocate($im, 250, 250, 250));
}
imagegif($im, "../public_html/map.gif");
imagedestroy($im);
?>
[Back to original message]
|