N
NishantModak.
hello,
i have a program like this
____________________________________________________________________________________
#!/usr/bin/perl
use CGI;
use am_common;
$CGI:OST_MAX = 512 * 1024; # half meg is max size
$pvars = CGI::new();
# get directories if passed in otherwise get them from the .cfg file
my $dir_work = $pvars->param("DIRW");
my $dir_conf = $pvars->param("DIRC");
my $dir_ast = $pvars->param("DIRA");
if (!$dir_work)
{
$dir_work = get_cfg_value("dir_work");
}
if (!$dir_conf)
{
$dir_conf = get_cfg_value("dir_conf");
}
if (!$dir_ast)
{
$dir_ast = get_cfg_value("dir_ast");
}
my $page = "Content-type: text/html\n\n";
$page .= "<HTML><HEAD><TITLE>Asterisk Management
System</TITLE></HEAD><BODY>";
$page .= "<FONT SIZE=-1><B><A
HREF=\"am-help.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast&HT=help-main\">HELP</A></B>";
$page .= "<CENTER><FONT SIZE=+3><B>Asterisk Management
System</B></FONT><BR>";
$page .= "<HR>";
$page .= "<BR><A
HREF=\"config.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast\">Configuration</A>";
$page .= "<BR><A
HREF=\"admin.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast\">Administration</A></CENTER>";
$page .= "</BODY></HTML>";
print $page;
exit(0);
_____________________________________________________________________________
this works well when i run it through the shell..
but when i try to execute it from the browser .. an empty screen turns
up.
HELP HELP HELP........
i have a program like this
____________________________________________________________________________________
#!/usr/bin/perl
use CGI;
use am_common;
$CGI:OST_MAX = 512 * 1024; # half meg is max size
$pvars = CGI::new();
# get directories if passed in otherwise get them from the .cfg file
my $dir_work = $pvars->param("DIRW");
my $dir_conf = $pvars->param("DIRC");
my $dir_ast = $pvars->param("DIRA");
if (!$dir_work)
{
$dir_work = get_cfg_value("dir_work");
}
if (!$dir_conf)
{
$dir_conf = get_cfg_value("dir_conf");
}
if (!$dir_ast)
{
$dir_ast = get_cfg_value("dir_ast");
}
my $page = "Content-type: text/html\n\n";
$page .= "<HTML><HEAD><TITLE>Asterisk Management
System</TITLE></HEAD><BODY>";
$page .= "<FONT SIZE=-1><B><A
HREF=\"am-help.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast&HT=help-main\">HELP</A></B>";
$page .= "<CENTER><FONT SIZE=+3><B>Asterisk Management
System</B></FONT><BR>";
$page .= "<HR>";
$page .= "<BR><A
HREF=\"config.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast\">Configuration</A>";
$page .= "<BR><A
HREF=\"admin.pl?DIRW=$dir_work&DIRC=$dir_conf&DIRA=$dir_ast\">Administration</A></CENTER>";
$page .= "</BODY></HTML>";
print $page;
exit(0);
_____________________________________________________________________________
this works well when i run it through the shell..
but when i try to execute it from the browser .. an empty screen turns
up.
HELP HELP HELP........