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

2009-02-03 Thread Sean Davis
On Mon, Feb 2, 2009 at 8:26 AM, bacoms wrote: > 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

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

2009-02-03 Thread Mike Williams
On Mon, Feb 2, 2009 at 8:26 AM, bacoms wrote: > Is it possible to eliminate the need to first write the image to > disk? Yes, it is possible and desirable. Writing the images to disk creates a lot of complications. You have to generate some random temporary name to avoid having train wrecks. I

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