I have added include ("Somepage.php"); inside a jpgraph
page. Somepage.php is getting displayed, however jpgraph
is not getting displayed, besides getting lot of errors like

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\myjp\Somepage.php:1) in c:\program files\apache group\apache\htdocs\arun\myjp\jpgraph.php on line 6667

How can I overcome this problem.Please help me.

Thanks

Jac

    I have added ob_start(); before the include
    and ob_end_flush(); at the end of the code.
    Image is coming as junk characters like

    ‰PNG IHDR¤®PµåZIDATxœíÝ

    Any comments?

    Jac

      you cannot mix content types in a single document.

      write the page so that all it does is generate and display the jgraph.

      Then put that into another page using an img tag.

        Originally posted by drawmack
        you cannot mix content types in a single document.

        write the page so that all it does is generate and display the jgraph.

        Then put that into another page using an img tag.

        I believe thats what Jpgraph does....

        just need to do <img src=path\to\jpgraphfile.php?args=values>

        to get it working right

          Write a Reply...