Re: Image_Graph: How can I dynamically generate images that can then be used in a report page with other text?

From: Date: Mon, 01 Aug 2005 20:57:34 +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  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20228@lists.php.net to get a copy of this message
--- 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 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. Thanks in advance __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#20228) next »