Kristofer,

You are correct, of course, when I transcribed into the email I "mis-Typed"

I think, though that the root of my problem is in the file format that things were saved in, the test print was added afterwards to trace the error through (I thought that I was not getting stuff passed into the script, so added a print section, starting with the simple "test" message and then moving on to the parameter values.)

I cured my problem by opening the script in textedit and resaving. After that it ran and I can re-open in BBEdit and modify things without breaking anything.

Dave

On Sunday, June 15, 2003, at 01:36 pm, Kristofer Hoch wrote:

David,

print "Content-Type: text/html\n\n"; # Inaccurate
print "Content-type: text/html\n\n"; # Accurate

The difference is in case sensitivity. Notice the word '-type:'

Kristofer

--- david Greenhalgh <[EMAIL PROTECTED]> wrote:
Can anyone tell me what the error message "Premature end of script
headers: $Lib /path/to/cgi" means in the httpd error_log file?

This is one of those "Runs on the command line but not in the
browser"
questions.

Permissions are set to 755 and a bit commenting out and simple
testing
shows that the script doesn't even get past:

#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
use DBI;

print "Content-Type: text/html\n\n";
print "test"

# Everything in the real script commented out

I'm writing in BBEdit 7, doing convert to ASCII before saving, and
saving with file creator set to Generic Text File and Line Breaks set

to UNIX and save State set to None.

Other scripts written in the same editor are working OK.

Dave


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



=====
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d s+:++ a C++ UL++ US+ P+++ L++
W+++ w PS PE t++ b+ G e r+++ z++++
------END GEEK CODE BLOCK------

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to