------------------------------------------------
On Thu, 24 Jul 2003 23:50:17 +0530 (IST), Visu <[EMAIL PROTECTED]> wrote:

> Hi,
> I have a cgi code like the one below.when i run this program
> i got the error message as premature end of script headers in my server's 
> error log.I am new to this CGI module.
> 
>   use CGI;
>   $a=CGI->new();
>   print $a->header("text/html\n\n");
>   @name=$a->param;
>   foreach(@name)
>   {
>    @values=$a->param($_);
>    print qq/@values\n/;
>    }

I assume you have a shebang line (#!) or that your server is setup to handle it 
correctly.

Are you sure the CGI module is installed? Have you verified that the syntax in the 
script is correct (perl -c)?  Can you run it from a command line and is it displayed 
correctly?

Usually this is caused by not printing a header (which you apparently are doing), or 
by printing something to STDOUT before a valid header, or because the script won't run 
at all....

http://danconia.org

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

Reply via email to