How do I raise the scope a level of a variable
Hi
I have an image of a graph that I generate using a PHP script. I put that graph on several web pages. I can pass data into the script but I would like to pass one small variable deep in the graph calculations out of the script onto some but not all the web pages on which the graph is displayed.
I realize that I could just copy the script on to the page minus the image_ functions and just redo the calculations but this seems like a horrendous waist of processor resources.
I would like to know how to raise the scope of one variable created in an image generating script so that I can use it in the script that called the image.
The page: componentdesignresults.php has this line in it:
ECHO ‘<IMG SRC=”designgraphimage.php?inputunits=’.$Inputs .’”/><br />’;
I would like to use a variable crated in designgraphimage.php in componentdesignresults.php
Any help suggestions or advice would be greatly appreciated.
|