Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Premature end of script headers

Status
Not open for further replies.

nook6

Programmer
Dec 18, 2002
24
0
0
GB
Hi

I am running a simple environments script on a server and every one i try i get a 500 error.

When i look in the log files this is the error it is outputting.

Premature end of script headers:

Can anyone tell me why?

The host of the server told me the path to perl is
#!/usr/bin/perl
Which is what im using.

Nook6
 
Hi

Heres one of the scripts i tried (Cut down to the minimum)
But still not working.
Code:
#!/usr/bin/perl # hosting company told me this was the path to perl
use CGI::Carp qw(fatalsToBrowser);
#-###########################################

    print "Content-type:  text/html\n\n";
    print "hello world";
 
Chmod 755 for that directory? Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
Hi

Thanks all for your help i found out what it was (sort of)
It was my ftp client i changed ftp clients and it worked straight away.

Nook6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top