Hmm..
Well you need to uncomment the header line of course. What happens when you do? You get the strange characters because the header line is not present.
Jadow
kirths wrote:
Dear sir,
We have installed PHP and found that the command imgaejpeg was not supported in the coading. So i downloaded php_gif_gd.dll and renamed it to php_gd.dll. I am running windows 2000 Advance server. The PHPINFO() command says that we have GD support. And the php_gd.dll command in php.ini is uncommented.
Whenever i run the following program with the following command imagegif (the command is now supported i get junk characters).
What do i do??
Here is a copy of the code i am using.
Your Immediate response and comments will be much appreciated.
P
<?php
//draw1.php
//Header("Content-type: image/gif");
$image=ImageCreate(200,150);
$gray=ImageColorAllocate($image,204,204,204);
$blue=ImageColorAllocate($image,0,0,255);
ImageLine($image,10,10,150,30,$blue);
ImageArc($image,150,65,70,70,0,360,$blue);
ImageRectangle($image,10,65,150,140,$blue);
Imagegif ($image);
ImageDestroy($image);
?>