Help Please

They have: 88 posts

Joined: Mar 1999

Hi All,

I'm pulling my hair out on this one and have spent
several hours on it. Basically I installed a Perl
script on a test server and everything worked ok.
I've now just installed it in its proper location
but all i'm getting is the helpful 'Premature end of
script headers' I have checked all the permissions
on files/directories - i've removed all the files and
checked again that they were uploaded in ascii. I've
even checked the directory structure as it is *slightly*
different than on the test server. All to no avail even
though the program ran fine on the other server - i've
not made any other changes other than to move it to its
new location.

Is there a way of getting more useful info as to where
exactly the problem is i.e. The perl script has a
few files that are required and I suppose the problem
could be either in any of these three files or with the
Perl script itself - it's a case of finding where exactly
the problem lies.

Any Ideas anyone?

Cheers in advance for any help.

Steve

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

can we have a link?

the closest thing I can think of would give a different error...
if you print content, then send another header (like "Location: http://here.com\n\n") then you get an error that says headers are already sent.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 161 posts

Joined: Dec 1999

You should have access to the error logs on the server. They will give a more verbose error message. Try to find them.

They have: 88 posts

Joined: Mar 1999

Thanks for the replies - but yes I have checked the
error logs - that's were I get "Premature end of script
headers" - I am going to try and put in :

use CGI::Carp 'fatalsToBrower';

and see if that sheds any light on it.

cheers

steve

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.