Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Premature end o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1423 of 1496
Post > Topic >>

Premature end of script header error....

by jeevsig@[EMAIL PROTECTED] (Nexis) Oct 24, 2007 at 03:46 AM

This is a piece of code to print a graph object.

####
.....<code to generate/plot a graph skipped>
....
       print "content-type: image/$graph_format\n\n";
        binmode STDOUT;
        print $img_obj;
....
####
This code works fine for me and I am able to see the graph. But when
the code goes on production     server, it gives Internal Server
Error. I have check the error logs and it says the premature end of
header.

I have check all the graph modules GD, GD::TextAlign, GD::Graph all
are same on both machines.

I use Apache 2.0.52, Perl 5.8.5
while the production runs Apache 1.3.29 , perl 5.8.0

Is there any compatibility issue or is there something I dont know
about.
 




 4 Posts in Topic:
Premature end of script header error....
jeevsig@[EMAIL PROTECTED]  2007-10-24 03:46:16 
Re: Premature end of script header error....
damog@[EMAIL PROTECTED]   2007-10-24 11:07:28 
Re: Premature end of script header error....
airedale@[EMAIL PROTECTED  2007-10-25 22:00:31 
Re: Premature end of script header error....
perl@[EMAIL PROTECTED] (  2007-10-24 17:28:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 10:36:26 CST 2008.