Re: SOLVED: Problem using Perl Modules under mod_perl

2002-04-23 Thread Sören Stuckenbrock
>>>Nice, but see below >>> somescript.pl --- #!/usr/bin/perl -wT use strict; use lib "."; use lib_netContest; use DBI; use CGI (qw:standard:); use vars qw(%c $config_module $db_handle); my $r = shift; if (de

Re: SOLVED: Problem using Perl Modules under mod_perl

2002-04-23 Thread Stas Bekman
Sören Stuckenbrock wrote: >>Nice, but see below >> >>>somescript.pl >>>--- >>>#!/usr/bin/perl -wT >>>use strict; >>>use lib "."; >>>use lib_netContest; >>>use DBI; >>>use CGI (qw:standard:); >>> >>>use vars qw(%c $config_module $db_handle); >>> >>>my $r = shift; >>>

Re: SOLVED: Problem using Perl Modules under mod_perl

2002-04-23 Thread Sören Stuckenbrock
> Nice, but see below >> somescript.pl >> --- >> #!/usr/bin/perl -wT >> use strict; >> use lib "."; >> use lib_netContest; >> use DBI; >> use CGI (qw:standard:); >> >> use vars qw(%c $config_module $db_handle); >> >> my $r = shift; >> >> if (defined $r && $r->dir_co

Re: SOLVED: Problem using Perl Modules under mod_perl

2002-04-23 Thread Stas Bekman
Sören Stuckenbrock wrote: > Hi, > > thanks to all of your help, I found a way to achieve the following > goal: Nice, but see below > somescript.pl > --- > #!/usr/bin/perl -wT > use strict; > use lib "."; > use lib_netContest; > use DBI; > use CGI (qw:standard:); >

SOLVED: Problem using Perl Modules under mod_perl

2002-04-23 Thread Sören Stuckenbrock
Hi, thanks to all of your help, I found a way to achieve the following goal: - have a couple of instances of a web application running under the same (name based) virtual host, under different s each using a different configuration than the others - having backwards compatibillity to pure C

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-22 Thread Geoffrey Young
> Here's what Geoffrey Young said, you seem to have missed it: > > > you can't use $s (the server record) to capture PerlSetVar that exist > on a per-directory basis (within a or block). try > > Apache->request->dir_config('BlaTest'); > > > > instead. you should use $s->dir_config() fo

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-22 Thread Per Einar Ellefsen
At 12:52 22.04.2002, Sören Stuckenbrock wrote: > >> Nope, using: > >> > >> Alias /contest /www/u-dev/contest > >> PerlModule Apache::Registry > >> PerlModule Apache::DBI > >> PerlTaintCheck On > >> > >>SetHandler perl-script > >>PerlHandler Apache::Registry > >

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-22 Thread Stas Bekman
Sören Stuckenbrock wrote: >>>Nope, using: >>> >>>Alias /contest /www/u-dev/contest >>>PerlModule Apache::Registry >>>PerlModule Apache::DBI >>>PerlTaintCheck On >>> >>> SetHandler perl-script >>> PerlHandler Apache::Registry >>> PerlSetVar BlaTest BlaVal >>>

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-22 Thread Sören Stuckenbrock
>> Nope, using: >> >> Alias /contest /www/u-dev/contest >> PerlModule Apache::Registry >> PerlModule Apache::DBI >> PerlTaintCheck On >> >>SetHandler perl-script >>PerlHandler Apache::Registry >>PerlSetVar BlaTest BlaVal >>PerlRequire /www/u-dev

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Stas Bekman
Sören Stuckenbrock wrote: >>>PerlSetVar seems not to work for me! The part of interest in >>>my httpd.conf looks like this: >>> >>> Alias /contest /www/u-dev/contest >>> PerlModule Apache::Registry >>> PerlModule Apache::DBI >>> PerlTaintCheck On >>> >>> PerlSetVar BlaTest BlaVal >

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Stas Bekman
Sören Stuckenbrock wrote: > Hello Stas, > > I have a question regarding your mod_perl documentation. > > The method you described under: > >http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/perl.html#Using_Non_Hardcoded_Configuration_Module_Names > Should this work to differen

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Sören Stuckenbrock
Hello Stas, I have a question regarding your mod_perl documentation. The method you described under: http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/perl.html#Using_Non_Hardcoded_Configuration_Module_Names Should this work to differentiate between the Config-Modules of two pr

RE: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Sören Stuckenbrock
>>PerlSetVar seems not to work for me! The part of interest in >>my httpd.conf looks like this: >> >>Alias /contest /www/u-dev/contest >>PerlModule Apache::Registry >>PerlModule Apache::DBI >>PerlTaintCheck On >> >> PerlSetVar BlaTest BlaVal >> SetHandler perl-scrip

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Geoffrey Young
> PerlSetVar seems not to work for me! The part of interest in my httpd.conf > looks like this: > > Alias /contest /www/u-dev/contest > PerlModule Apache::Registry > PerlModule Apache::DBI > PerlTaintCheck On > >PerlSetVar BlaTest BlaVal >SetHandler perl-scri

RE: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Jonathan M. Hollin
>(By the way: there's a typo at line 1 of the startup.pl >script: I think use Apache: should be use Apache; >right?) Good catch! :-) >But following that guideline resulted in the next problem, I >could not yet solve on my own: > >PerlSetVar seems not to work for me! The part of interest in >

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Sören Stuckenbrock
S.Stuckenbrock > Per Stas Bekman wrote: >> At 21:12 19.04.2002, Sören Stuckenbrock wrote: >> >>> Hi there, >>> >>> mod_perl-newbie needs help! >>> I have a nasty problem using Perl Modules under mod_perl. >>> I've developed a CGI-Applic

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Stas Bekman
Per Einar Ellefsen wrote: > At 21:12 19.04.2002, Sören Stuckenbrock wrote: > >> Hi there, >> >> mod_perl-newbie needs help! >> I have a nasty problem using Perl Modules under mod_perl. >> I've developed a CGI-Application, that retrieves its config

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Per Einar Ellefsen
At 21:12 19.04.2002, Sören Stuckenbrock wrote: >Hi there, > >mod_perl-newbie needs help! >I have a nasty problem using Perl Modules under mod_perl. >I've developed a CGI-Application, that retrieves its configuration values >from a module that gets included (with "

Re: Problem using Perl Modules under mod_perl

2002-04-19 Thread Frank Wiles
On Fri, 19 Apr 2002 21:12:35 +0200 (CEST) "Sören Stuckenbrock" <[EMAIL PROTECTED]> wrote: > Hi there, > > mod_perl-newbie needs help! > I have a nasty problem using Perl Modules under mod_perl. > I've developed a CGI-Application, that retrieves its confi

Problem using Perl Modules under mod_perl

2002-04-19 Thread Sören Stuckenbrock
Hi there, mod_perl-newbie needs help! I have a nasty problem using Perl Modules under mod_perl. I've developed a CGI-Application, that retrieves its configuration values from a module that gets included (with "use") in every Script of the application. So far no problem. But when