in reply to gnuplot and CGI
One approach to this would be to code the graph-producing algorithm as a seperate CGI (for example, called graph.pl). Then, your core CGI script would produce an HTML page containing something like:
where your parameters contain the variable data you will be graphing. Done this way, your graph.pl can return e.g.:<img src="/cgi-bin/graph.pl?param=x¶m2=y">
Content-type: image/jpeg ###ACTUAL IMAGE DATA###
Doing this avoids the need for temp files, as the browser will take the output image data from your graph.pl and display it as an image.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: gnuplot and CGI
by kryberg (Pilgrim) on Nov 09, 2004 at 19:51 UTC |