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.
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??
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]