Hi All,

   I am using the GD::Graphs to generate a graph.
  I am storing the file on the server and then displaying the same. my
code looks like.

####
..
...
...
$gd = $graph->plot([EMAIL PROTECTED]) or die $graph->error;

 open(IMG, '>file.png') or die $!;
 binmode IMG;
 print IMG $gd->png;

 print "<img src='file.png'>";

#######
yes i am creating a file in cgi directoy ..

but instead of the image just a square box is displayed ..
Do i need some configuration in apache or my i missing something in my
perl code

Thanks for the help in advance


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to