All,
I am trying to a call a fly program which generates dynamic images on a webpage and I'm geting this error -> malformed header from script. Bad header=/usr/home/gump/bin/fly:
The main code is as such and I've tried various varaitions of the Content-Type headers to no avail - the simple-lib.pl code which is referred to - I've included as well for reference:
#!/usr/bin/perl5
require 'simple-lib.pl';
&flyprog;
$output = `$flyprog -i $flytemp`;
print "\n\n";
print "Content-Type: text/html\n\n";
print "Content-Type: image/gif\n\n";
print "$output";
#!/usr/bin/perl5
sub flyprog {
$flyprog = "/usr/home/gump/bin/fly";
}
1;