
jimmy1977
New User
Mar 31, 2011, 10:15 AM
Post #1 of 3
(1291 views)
|
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..... #!/perl/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); use CGI qw/:standard/; use GD; my $image = new GD::Image(401,201); my $x1 =10; my $y1 = 0; my $x3=100; my $y3 = 100; my $black = $image->colorAllocate(0,0,0); $image->rectangle($x1-10, $y1+10, $x3+10, $y3-10, $black); print $image->png;
|