<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>I am having a problem printing out simple HTMP 
using the mapscript perl mod.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is the only error that I get in my 
logs.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[Fri Jul 20 10:43:42 2001] [error] [client 
192.168.1.47] Premature end of script headers: /ho</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Here is some code that I am using. When I 
comment out the 3   $map=  , $img= and 
mapscript::msSaveImage   lines it works. </FONT></DIV>
<DIV><FONT face=Arial size=2>Now, if I comment out the  "use CGI"  
code, and NOT the mapscript code, then it works!</FONT></DIV>
<DIV><FONT face=Arial size=2>So I am wondering, is there conflicts with CGI.pm 
and Mapscript.pm ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>print "Content-type: text/html\n\n";<BR>$mapPath 
="/home/jburnett/maptest";<BR>$imgTemp ="/home/htdocs/tmp";<BR>use 
mapscript;<BR>use CGI;<BR>my $q = new CGI;<BR>my $imgX = 
$q->param('img.x');<BR>my $imgY = $q->param('img.y');</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>  $map = new mapObj("$mapPath/romney.map") 
or die($!. "::Unable to open mapfile.");<BR>  $img = $map->draw() or 
die('Unable to draw map');<BR>  mapscript::msSaveImage($img, 
"$imgTemp/example.gif", $map->{interlace}, 
$map->{transparent});</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>print"<BR><html><head><title>Perl 
Mapserver Test</title></head>\n<BR><body><BR><b>$imgX X 
$imgY</b><br><BR><img src='/tmp/example.gif'><BR><form 
action='/cgi-bin/romney.pl' method='post'><BR>";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Apache/1.3.12 </DIV>
<DIV>Perl v5.6.0</DIV>
<DIV>Slackware 7.1</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thanks!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-jim</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>