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 gkittelson 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.

loosebruce

Programmer
May 28, 2002
6
US
I'm using two perl CGI scripts:
one activated by
Code:
<FORM ACTION=&quot;/cgi-bin/ptsurvey.cgi&quot; METHOD=&quot;POST&quot;>
in an HTML page,
the other activated by
Code:
<!--#exec cgi=&quot;/cgi-bin/ptslog.cgi&quot;-->
in an SHTML page.

Both work fine, but the page that uses
Code:
<!--#exec cgi=&quot;/cgi-bin/ptslog.cgi&quot;-->
always results in &quot;premature end of script headers&quot; message in the error log.

I've tried everything I can think of including other scripts, but it seems to boil down to the fact that I get that error message every time I use
Code:
<!--#exec cgi=&quot;/cgi-bin/filename.cgi&quot;-->)
in an SHTML page.

I'm using SGI/UNIX/Irix/Apache

 
I don't know what the error is, but are you using the -w switch as part of the path to perl? for me this is:
[tt]
#!/usr/bin/perl -w
[/tt]
this will give more verbose error messages that might help you to narow down the problem. Also, do te scripts work correctly when not run via server side includes?

Will.
fortytwo
will@hellacool.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top