Re: About Image_Graph Packge
| From: | Christian Weiske | Date: | Sun, 25 Jan 2009 07:30:19 +0000 |
| Subject: | Re: About Image_Graph Packge | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29640@lists.php.net to get a copy of this message | ||
Hello Ji,
> I am trying to generate a graph on a webpage with image_graph. In
> order to make it more dynamic, I am also trying to add input fields
> for the users to choose the minimum range and the maximum range for
> the domain of the graph. I tried "echo"ing the <input> html right
> after calling done() function of the image_graph, but it keeps
> crapping out displays the following error.
>
> *Warning*: Cannot modify header information - headers already sent by
> (output started at /var/www/cmp/index.php:17) in *
> /usr/share/php/Image/Canvas.php* on line *644*
Image_Graph's done() method directly writes the *image* out to the
browser. It does not generate HTML. So if you want to display both HTML
*and* and image, you have to have separate files, or save the graph in
a temp directory and link it from your HTML page.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc