I am using a third party php function (by Afan Ottenheimer, afan@jeo.net
), which basically creates a graph of data that I put in.
The graph is working fine, but only when I run the script on its own, not as an include.
This doesn't help much, as I want to include the graph as part of a PHP page... but it gives me all kind of errors when I run it from inside another page. The files are in the same directory.
The errors I get are:
"Warning: Cannot add header information - headers already sent by ...etc"
Which indicates to me that the file which includes the graph needs to be called before anything else....
So I either need a way to create the graph first, then include it as an image, or to create the image as the page is being loaded.
Any ideas?
Thanks