Mar 31, 2011, 10:15 AM
Post #1 of 3
Hello everybody. Excues me English is so bad.
I have in my computer Perl - Apache - Windows.
I try to use GD library, I can create charts, but when I try made a polyline, Apache send a internal error. Its a Apache configuration problem? or its a GD problem?.
Thanks for your answers.
The code is the next.....
use CGI::Carp qw(fatalsToBrowser);
use CGI qw/:standard/;
my $image = new GD::Image(401,201);
my $x1 =10;
my $y1 = 0;
my $y3 = 100;
my $black = $image->colorAllocate(0,0,0);
$image->rectangle($x1-10, $y1+10, $x3+10, $y3-10, $black);