Forum Moderators: mack
The php script that calls the postgraph.class.php uses this:-
$graph->printImage();
the funcion in "postgraph.class.php" is:-
function printImage() {
header( "Content-type: image/png" );
ImagePNG($this->img);
}
what i would like to do is to save the file using ImagePNG() use the script to generate three more graphs and they will be displayed on a web page.
i can change the printImage function to save a file, but this would only enable me to save the one file and not the four that i want
can someone please help me out .
cheers :-)
Rather than change the printImage function you could also add a new function, something like saveImage() or what ever you decide to name it. Then, all you need to do is call that function for each instance of your class (which is likely each photo in your case).