Re: Generating Images with Image_Graph
| From: | Christian Weiske | Date: | Tue, 03 Feb 2009 05:37:41 +0000 |
| Subject: | Re: Generating Images with Image_Graph | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29674@lists.php.net to get a copy of this message | ||
Hello Ji,
> Hello I've been trying to generate images via Image_Graph.
> I've wrote some code which seems to be working on when I run it as a
> parameter to the "php" command on linux console.
> So like if I type "php graph.php" graph.php being the file that
> contains the code that I will be displaying shortly.
> It creates the image and saves the PNG file to the current directory,
> but I get no response (no creation of the image) when I run graph.php
> from the web browser.
> $Graph->done(array('filename' => './output.png'));
You are saving the file only. Either put it out directly, or save it
and put it to stdout:
> $Graph->done(array('filename' => './output.png'));
> readfile('output.png');
--
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