Hello,
I have installed php traid on win98. I configured php.ini to support gd functions by adding extensions. When when I use ImageJPEG my browser(IE5) outputs some garbage. When I use ImageJPEG($img, \"xy.jpeg\"); a jpeg image of specified dimension is created but no lines or rectangles- any gd function used is not appearing. For eg the following code just creates a blue image(jpeg file).
<?
$img = ImageCreate(200,150);
$blue=ImageColorAllocate($img,0,0,255);
ImageLine($img, 10, 10, 50, 100, $blue);
ImageJPEG($img, \"img.jpeg\");
?>
What is the problem? Please help me in solving this.