I have script (main.php) that calls a secondary script (image.php)
that produces a graphic. The invocation in main.php is like this...
print "<img src=" . chr(34) . "image.php?option=$draw" . chr(34) . ">"
What I would like to do is incoporate all the code contained in
image.php into my main.php as a function. As it currently stands if I
do this, I get an error message saying that the headers already sent.
I've not quite got my head around this- any help would be gratefully
received.