Thanks for the Repsonse..
I'll try it when I get back to work Monday - however that is nearly what I am doing anyway.. though in a bit different order..
We're getting an image out perfectly with only one image to display.. it is the problem of multiple calls to the same script that we're having problems with.
We're using object oriented php.. in this case, for example, I have a class that receieves the raw input string and needs to return an array of strings as well, for one of the features.. (exclusion of parts of that image for the next time..)
My problem is that if you attempt to call that same script in the img src for different pictures (from different input strings).. you get only the very last picture created. We're wanting all of them individually.
This isn't verbatum, but it looks something like this at the moment:
<?php
foreach ($inputArray as $inString){
// create the image
$Pic = new Image($inString, $otherArguments);
// store it for use in the called script page
$_SESSION['Pic'] = $Pic;
// get the information we need from the image's
// class before it's destroyed
$returnedArray = $Pic->get_returnedArray();
// .... create the html/css to surround the picture, then:
// the ImageScript file only calls the GD specific functions
// to return the image, like create the headers and
// call GD's image creation and destroying mechanism.
echo "<img src=\"ImageScript.php\">";
} // end foreach
?>
... and so on.
It's quite a change from what we had planned and how this type of thing is normally used.. However, as long as you don't destroy the image by creating it, you can treat the image as an object with it's own data and functions.
... To define the problem another way, our classes are being created and destroyed before the browser goes and gets any of the pictures, leaving us with only the output of the final image for each one called, and not seperate images for each one.
It may not be a php problem, but we're looking for a php solution just in case.
Thanks for your time and for bearing with me, my friends.. it is appreciated.
Have a good one!
K.