----- Original Message -----
From: "Sabherwal, Balvinder (MBS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 7:34 AM
Subject: [cgiapp] how do I do this??
> I am getting an error in one of my scripts in execution of mode2. The
error
> is as
>
> [Fri Jan 18 09:12:09 2002] [error] [client 10.90.74.122] Premature end of
> script headers: c:/program files/apache group/apache/cgi-bin/testapi.cgi
> [Fri Jan 18 09:12:09 2002] [error] [client 10.90.74.122] [Fri Jan 18
> 09:12:09 2002] c:\PROGRA~1\APACHE~1\apache\cgi-bin\testapi.cgi: Error
> executing run mode 'mode2'. Eval of code '$self->showyear' resulted in
> error:
>Failed to open Sysmon DB: No such file or directory, error in
> $startloc\HASH(0x1c5adf8) at testapi.pm line 58.
There is your problem. Line 58 where you try to open the file. It appears
to be looking for $startloc\HASH(0x1c5adf8) which obviously is incorrect.
You ask for "any ideas why", your error logs tell you exactly why. Have a
look at line 58 of your code.
>
>
>
> The script is as below,its faling to open a directory in the showyear sub
> function. Any pointers as why?? Also this script just displays the drop
down
> list and the submit button. I wanted to add the text before the list and I
> changed the lines to look like
>
> $output .= "Select Environment : ", $q->popup_menu(-name=> 'apps', -values
> =>\@apps); and that did not worked. How do I add the text before select
> fields on the form letting the user know as what is the field about??
>
You need to be more specific than "that did not work" what did it do?
> Thanks in advance
> Bal.
>
>
>
> package testapi;
> use base 'CGI::Application';
> use strict;
>
> # Needed for our database connection
> use DBI;
>
> sub setup {
> my $self = shift;
> $self->start_mode('mode1');
> $self->run_modes(
> 'mode1' => 'showapps',
> 'mode2' => 'showyear''
> );
>
> }
>
> sub teardown {
> my $self = shift;
>
> }
>
> sub showapps {
> my $self = shift;
>
> ---------------------------------------------------------------------
> 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]