Re: [LIP] perl & CGI

Rahul Upakare <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization NCST, Kharghar
Message-ID <[email protected]>
Hi Ravi,

Ravi <austin_lovingly@...> wrote:
> tried to execute a CGI script, im getting the error
> "premature end of script header".what may be the
> common cause.

What exactly is your CGI script doing?

Anyway, the possible causes could be: 
1. Check the #!/path/to/perl is correctly specified in your script
2. Specify Content-Type properly, like
   Content-Type: text/html\r\n\r\n
3. The CGI file should not be writable by group and others
4. If your script is reading/writing to/from some file, it should have proper permissions to read/write those file(s).
:
:

--
Rahul Upakare

To err is human and to blame it on a computer is even more so. 
-- Robert Orben
 



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.