Re: Image_Graph: How can I dynamically generate images that can then be used in a report page with other text?
| From: | Justin Patrin | Date: | Mon, 01 Aug 2005 21:04:43 +0000 |
| Subject: | Re: Image_Graph: How can I dynamically generate images that can then be used in a report page with other text? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20229@lists.php.net to get a copy of this message | ||
On 8/1/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
> --- Justin Patrin <papercrane@gmail.com> wrote:
>
> > On 8/1/05, l Burnerheimerton
> > <lburnerheimerton@yahoo.com> wrote:
> > > I want to use dynamically generated graphics in a
> > > reports page.
> > >
> > > I have a page that generates the graphic,
> > page1.php
> > > that outputs to a file:
> > >
> > > $Graph->done(array('filename' => 'output.png'));
> > >
> > > Another page that has a report where I'd like to
> > > incorporate several graphics dynamically
> > generated.
> > >
> > > I've tried to add this to my reports.php page:
> > > require_once("page1.php")
> > > ...
> > > <body>
> > > Test Report<br>
> > > <img src="/output.png">
> > > </body>
> > >
> > > It just displays the image and stops at the
> > > require_once(), it doesn't continue on the page.
> > >
> > > How can I dynamically generate images that can
> > then be
> > > used in a report page?
> > >
> >
> > That should work fine. Are you sure your page1.php
> > is not exiting the
> > script somehow?
> >
> > --
> > Justin Patrin
> >
>
> Yes, I am sure. I agree that it should work fine but
> it is not.
>
> If you output anything to browser before the graph is
> generated, it throws errors.
What kind of errors? "output before header" errors? If so, your graph
package is outputting image headers (and the image) instead of putting
the image in a file.
>
> What I want to do is incorporate several graphs on one
> page with a report writtem based on other values.
> So...I need separate graphs generated then include
> them in another page.
>
--
Justin Patrin