| l Burnerheimerton 2005-07-31, 9:00 am |
| Here's the example I am using - straight out of the
documentation. It works fine if you output it to a
file using:
$Graph->done(array('filename' => './output.png'));
But when I use the following it does not work:
<?php
include 'Image/Graph.php';
$Graph =& Image_Graph::factory('graph', array(400,
300));
$Plotarea =& $Graph->addNew('plotarea');
$Dataset =& Image_Graph::factory('dataset');
$Dataset->addPoint('Denmark', 10);
$Dataset->addPoint('Norway', 3);
$Dataset->addPoint('Sweden', 8);
$Dataset->addPoint('Finland', 5);
$Plot =& $Plotarea->addNew('bar', &$Dataset);
$Graph->done();
?>
The above code throws errors:
Warning: Cannot modify header information - headers
already sent by (output started at
C:\test\TMPi9nskho3w.php:1) in
c:\pear\lib\Image\Graph\Driver.php on line 525
Warning: Cannot modify header information - headers
already sent by (output started at
C:\test\TMPi9nskho3w.php:1) in
c:\pear\lib\Image\Graph\Driver.php on line 526
Warning: Cannot modify header information - headers
already sent by (output started at
C:\test\TMPi9nskho3w.php:1) in
c:\pear\lib\Image\Graph\Driver.php on line 527
Warning: Cannot modify header information - headers
already sent by (output started at
C:\test\TMPi9nskho3w.php:1) in
c:\pear\lib\Image\Graph\Driver.php on line 528
Warning: Cannot modify header information - headers
already sent by (output started at
C:\test\TMPi9nskho3w.php:1) in
c:\pear\lib\Image\Graph\Driver\GD\PNG.php on line 104
Any ideas are much appreciated!
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|