Running it from the command line, I did the following and it works:
[-
sub newsedit
{
my ($self, $department) = @_;
chdir("/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/");
$ENV{QUERY_STRING} = "name=$department";
open FH, ("/usr/bin/perl
/webServer/vir
> Hi, I tried that and called it with:
>
> [-$subs->newsedit();
> -]
>
> on an html page, but nothing is displayed.
>
Does the command from your page
/usr/bin/perl
/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi
work from the command line ? If not, what do you have to
Hi, I tried that and called it with:
[-$subs->newsedit();
-]
on an html page, but nothing is displayed.
Here is the output from the log:
http://www.cannonschool.org/Curriculum_and_Admissions/embperl.log?0&15635&SRC:
On Thu, 31 May 2001, Gerald Richter wrote:
>
>
> >
> I've suggested one thing below that may getting your first approach
> going.
>
> There still must be a better way though... Creating a new instance of
> the perl interperter is messy.
>
Of course there is, but the problem is the encryption. The decrytion is
handle by Perl modules, so it shoul
> How would I write that in front of the call to perl. I did the following
> but am getting errors:
>
>
> [-
> sub newsedit
> {
> unshift(@INC,
'/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2') ;
> open FH, ($ENV{QUERY_STRING} = "name=Homepage" "/usr/bin/perl
> /webServe
How would I write that in front of the call to perl. I did the following
but am getting errors:
[-
sub newsedit
{
unshift(@INC, '/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2') ;
open FH, ($ENV{QUERY_STRING} = "name=Homepage" "/usr/bin/perl
/webServer/virtualDW/cannon
I've suggested one thing below that may getting your first approach
going.
There still must be a better way though... Creating a new instance of
the perl interperter is messy.
Gary Nielson wrote:
>
> Thank you! I had not realized you had sent a previous email as well. I
> tried this solution an
Thank you! I had not realized you had sent a previous email as well. I
tried this solution and so far, it has not worked -- and I have some
questions about that. But I did find another solution that does work, and
I wanted to share that and see if there is any disadvantage to this
approach, if the
> Please forgive my newbie questions here. I set the following in
> httpd.conf:
>
> # EMBPERL STUFF
> SetEnv EMBPERL_ESCMODE 0
> SetEnv EMBPERL_OPTIONS 16,16384
>
You have to add these two numbers together:
SetEnv EMBPERL_OPTIONS 16700
> and then in the html file, I did the following:
>
> [- B
Please forgive my newbie questions here. I set the following in
httpd.conf:
# EMBPERL STUFF
SetEnv EMBPERL_ESCMODE 0
SetEnv EMBPERL_OPTIONS 16,16384
and then in the html file, I did the following:
[- BEGIN { unshift(@INC,
'/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/') } -]
[- $nam
>
> [-
> $oldfh = select(OUT);
> &do();
> select ($oldfh);
> -]
>
Instead of the select(OUT) you can set optRedirectStdout in your httpd.conf
and Embperl will do the same for you.
Gerald
-
Gerald Richtereco
>
> Under embperl, I tried that and it didn't work. I then set up:
>
> [- $name = "Homepage" -]
> [- Execute
("/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi") -
]
>
In 1.3.x Execute executes a Embperl page, since your cgi doesn't contain any
[-/+ +/-] etc. blocks, Embperl
Gary Nielson wrote:
>
> I am running embperl under Redhat 5.2, HTML-Embperl-1.3.2, using
> epocgi.pl. Apache doesnt have mod perl installed. I need to run a perl
> application that allows users to update Web pages without knowing HTML. I
> am having trouble getting it to run under embperl.
Try s
I am running embperl under Redhat 5.2, HTML-Embperl-1.3.2, using
epocgi.pl. Apache doesnt have mod perl installed. I need to run a perl
application that allows users to update Web pages without knowing HTML. I
am having trouble getting it to run under embperl.
Outside of embperl it is set up to
14 matches
Mail list logo