I am trying to create a dashboard on a php website which shows graphs.
I can get the graphs to work on their own but when I try to mix in text or include the graph.php page in a regular php page, it doesnt work.
Says headers were already sent. I have narrowed it down to "header("Content-type: image/png"); " being at the top of the page.
HEre is my question.
Lets say I have a page, "dashboard.php". I also have graph1.php, graph2.php and graph3.php.
I want to include those into dashboard.php. How do I handle this. When I do it now it says : Cannot modify header information - headers already sent by ..." Obvioulsy because the included page (graph1.php) contains the header content type line.