Hi guys,
I am having an issue with generating images using PHP.
When I include the PHP file(ex. graph.php), which generates the PNG image, in my current html file, it gives an error saying "Headers already sent". It then displays the image as ASCII text. This happens only when the include statement is preceeded by any html tags.
if I remove the following statement from graph.php, it eliminates the error but still shows the image as ASCII text: 'header("Content-type: image/$this->img_format");'
How do i make it work smoothly
I am using the jpgraph 1.7 class library to generate the png images.
Cheers
Kapil Karekar