CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Premature end of script headers

 



Turco
Deleted

Jan 30, 2001, 9:20 PM

Post #1 of 3 (301 views)
Premature end of script headers Can't Post

I am trying to get the attached script to run on a unix server, virtualave.net to be exact, but whenever I try to run it on the server, it gives an error saying 'Premature end of script headers'. This script runs fine on my computer, but just doesn't seem to work there. I changed the permissions correctly as well. The script is attached, so if someone could please take a look at it and tell me what I'm doing wrong, I'd really appreciate it.

Thanks,
- Turco



sleuth
Enthusiast

Jan 31, 2001, 11:49 PM

Post #2 of 3 (290 views)
Re: Premature end of script headers [In reply to] Can't Post

 
I'm not sure if

print header();

will work because I don't use CGI.pm like that,

I'd replace it with

print "Content-type: text/html\n\n";

I thought that's what

print header();

Did but since your getting a header error I can only suggest you give that a try.

Tony



Turco
Deleted

Feb 1, 2001, 2:39 PM

Post #3 of 3 (280 views)
Re: Premature end of script headers [In reply to] Can't Post

Thanks, I'll try that.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives