hi all,
I read the article on creating images or graphs with php
i used the same code but failed to get the graphs
i have installed php 4 and GD 1.33 with Redaht 7.2 linux
when i give the url and test ,
i get a page with a picture taht is unknown
i don't get any errors also
only the page shows me some unknown image(which we usually get whenever the browser cannot find teh image specified in a particular path)
what may be the problem?
ANOTHER PROGRAM I TRIED WORKS WHICH IS AS FOLLOWS
<?php
Header( "Content-type: image/png");
$image = imagecreate(200,200);
$maroon = ImageColorAllocate($image,100,0,0);
$white = ImageColorAllocate($image,255,255,255);
ImageFilledRectangle($image,0,0,200,200,$white);
ImageRectangle($image,10,10,190,190,$maroon);
ImageFilledRectangle($image,50,50,150,150,$maroon);
ImagePNG($image);
ImageDestroy($image);
?>
i have tested this small program that draws a rectangle and fills color but does not support GIF
if i change to JPEG or PNG i will get the image
Please help me
Regards
roopa