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:
Preamture end of script headers...still

 



Turco
Deleted

Feb 5, 2001, 7:39 PM

Post #1 of 4 (344 views)
Preamture end of script headers...still Can't Post

I am trying yet again 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. Also, I've tried changing the print header();
line to print "Content-type: text/html\n\n"; but it changed nothing. 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



kencl
User

Feb 5, 2001, 9:20 PM

Post #2 of 4 (336 views)
Re: Preamture end of script headers...still [In reply to] Can't Post

Could be that the path to the PERL interpreter is wrong. Try #!/usr/bin/perl, or to find out for sure, use perldiver.

>> If you can't control it, improve it, correlate it or disseminate it with PERL, it doesn't exist!


pu_nk
journeyman

Feb 5, 2001, 9:24 PM

Post #3 of 4 (335 views)
Re: Preamture end of script headers...still [In reply to] Can't Post

Well here are all the errors i found..

The following should have \"

print "<base target="main">\n";

print "<p><font face="Fixedsys">\n";

print "<body text="#ffffcc" bgcolor="#000000" link="#0000ff" vlink="#0000ff">\n";



And the e-mail addy should have a bk slash b4 the @ sign.. like so.. \@

templishack@hotmail.com

Do you Have perls debugger installed to check your errors ?




Turco
Deleted

Feb 8, 2001, 7:32 PM

Post #4 of 4 (320 views)
Re: Preamture end of script headers...still [In reply to] Can't Post

I've changed all of that, plus rn the script through with -w and -c, and it came through clean, but it still doesn't work on the web host. I'm really getting frustrated wiht it, because I'm quite sure it's most likely something small that I'm screwing up on.


 
 


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

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