Re: Using GD on the fly to add a graph to a web page

2009-02-08 Thread bacoms
Mike, I replied a couple of days ago to say I'd solved the problem but it has not appeared, despite being told that the post was successful. Assuming that it's lost, here's a brief summary; Delved into LWP as you recommended and strung together some code that used the 'head' and 'getstore' method

Re: Using GD on the fly to add a graph to a web page

2009-02-05 Thread bacoms
Mike, First of all many thanks for the detailed reply. I thought I understood what you were saying but, having changed my code accordingly, I'm not so sure. If I understand you right, to embed a graph on my HTML page I need to create it outside the HTML with Content-type: image/png\n\n. This is ac

Using GD on the fly to add a graph to a web page

2009-02-03 Thread bacoms
I've got a web page that includes a graph. I achieve this with code that looks like: print "Content-type: text/html\n\n"; etc etc my($myImage) = $myChart->plot(\...@data) or die $myChart->error; open(IMAGE, ">Images/zzzgraph.png