in reply to GD malformed header error
When running a CGI you need to output (print) what the browser shall see. Normally this is HTML-Code, but plain text or images are fine, too.
First of all you need to print a header containing the content-type and two newlines:
print "Content-type: image/png\n\n"
... and remove that line saying: Context: ....
This should work for a trial.
I would further encourage you to use strict;, enable warnings (-w) AND use CGI;.
#!/usr/bin/perl -w use strict; use CGI; my $q = CGI->new; print $q->header("image/png"); ## later print $im->png;
I'm sure, GD is not to blame.
alex pleiner <alex@zeitform.de>
zeitform Internet Dienste
|
---|
In Section
Seekers of Perl Wisdom