Anyone who's good at CGI please help!

vetteguy

Diamond Member
Sep 12, 2001
3,183
0
0
Usually a "premature end of script header" in a cgi script means you forgot a semi-colon somewhere. At least that's what usually happens to me. I do a lot of cgi programming where I work, maybe I could help you out. No promises though! :)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
two basic problems:

1) your script doesn't compile, typically a missing bracket, quote mark, semicolon, etc.
2) Your script doesn't print the http header.

if your script runs fine from the command line, it's most likely the second one. If not, most likely the first one (and your perl interpreter should tell you which line the problem is on)
 

Paulson

Elite Member
Feb 27, 2001
10,689
0
0
www.ifixidevices.com
I'm really not that smart with any of this stuff...

could I send you the file and perhaps you could find it notfred? I hate to beg for it, i feel stupid in reguards to me not knowing this :(

 

Francodman

Diamond Member
Dec 11, 1999
4,965
0
76
How do you honestly expect to run a site using CGI without knowing how to manipulate the code?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Works ok on my machine. I'd have to be logged into your server to test it any farther.
 

vetteguy

Diamond Member
Sep 12, 2001
3,183
0
0
Originally posted by: Paulson
if I emailed you the members.cgi file would you look at it for me? I'd really appreciate it...
Sure. I'm not saying I'm a GOOD cgi programmer, though. :)