Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 11:57:58AM +0100, D. Bolliger wrote: > [EMAIL PROTECTED] am Freitag, 24. November 2006 11:27: > > [snipped] > > Watch this: > > | [EMAIL PROTECTED]:~$ perl > > | use DB_File; > > | > > | tie my %dbh, 'DB_File', "foobar" ||

Re: Obtaining URI supplied by the client from a subrequest

2006-11-24 Thread Radoslaw Zielinski
Torsten Foertsch <[EMAIL PROTECTED]> [24-11-2006 12:41]: > On Friday 24 November 2006 12:09, Radoslaw Zielinski wrote: [...] >> Is there any smarter way than this hack? >> my $request_uri = (split /\s/, $r->the_request)[1]; > ErrorDocuments are served by internal redirects. So $r->prev->uri shoul

Re: Obtaining URI supplied by the client from a subrequest

2006-11-24 Thread Torsten Foertsch
On Friday 24 November 2006 12:09, Radoslaw Zielinski wrote: > I'm redirecting to a mod_perl handler with ErrorDocument: > >   Order allow,deny >   ErrorDocument 403 /login >   >     Order deny,allow >     SetHandler modperl >     PerlResponseHandler My::Handler >   > > On an unauthorized request,

Re: [RELEASE CANDIDATE]: Apache-Test-1.29-RC3

2006-11-24 Thread Issac Goldstand
PASS Win32 Perl-5.8.8 + Apache 2.2.3 Philip M. Gollucci wrote: > A release candidate for Apache-Test 1.29-rc3 is now available. > > http://people.apache.org/~pgollucci/at/Apache-Test-1.29-rc3.tar.gz > > Please take the time to exercise the candidate through all your existing > applications that

Re: [RELEASE CANDIDATE]: mod_perl-2.0.3 RC3

2006-11-24 Thread Issac Goldstand
PASS Win32 Perl-5.8.8 + Apache 2.2.3 Philip M. Gollucci wrote: > A release candidate for mod_perl 2.0.3-rc3 is now available for testing. > > Please grab the candidate from > http://people.apache.org/~pgollucci/mp2/mod_perl-2.0.3-rc3.tar.gz > > and report back successes or failures. When reporti

Obtaining URI supplied by the client from a subrequest

2006-11-24 Thread Radoslaw Zielinski
Hello, I'm redirecting to a mod_perl handler with ErrorDocument: Order allow,deny ErrorDocument 403 /login Order deny,allow SetHandler modperl PerlResponseHandler My::Handler On an unauthorized request, Apache makes a subrequest served by My::Handler::handler(). So far, so

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread D. Bolliger
[EMAIL PROTECTED] am Freitag, 24. November 2006 11:27: [snipped] > Watch this: > | [EMAIL PROTECTED]:~$ perl > | use DB_File; > | > | tie my %dbh, 'DB_File', "foobar" || die "Argh: $@"; > | $dbh{'one'}=1; > | $dbh{'two'}=2; [snipped] Hello Tomás This won't die if the tie failed, because of

Re: why can't I get data from DBM in mod_perl

2006-11-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Nov 24, 2006 at 04:47:21PM +0800, silent wrote: > Hi all, > I need help with mod_perl: > My ENV is redhat ES4 + apache2.0.59 + mod_perl2. > > I wrote a small script: > > package myconf; > > use strict; > use warnings; > u

why can't I get data from DBM in mod_perl

2006-11-24 Thread silent
Hi all, I need help with mod_perl: My ENV is redhat ES4 + apache2.0.59 + mod_perl2. I wrote a small script: package myconf; use strict; use warnings; use DB_File; use Fcntl; use Apache2::Const -compile => qw(:common); use Apache2::Request (); use Apache2::Connection (); use