Re: mod perl

2007-09-24 Thread Dr.Ruud
George schreef: > I'm having a problem with modperl and I can't figure out if it's my > stupiditry or modperls'. I'd love somebody with some modperl foo to > give me a hand. See http://london.pm.org/pipermail/london.pm/Week-of-Mon-20070924/010069.html -- Affijn, Ruud "Gewoon is een tijger."

Re: mod perl

2007-09-24 Thread George
Hi, I found the answer on another perl mongers list. I needed to swap the user and passwd. $r->user isn't available until after $r->get_basic_auth_pw has been called. Cheers! George Matthew Whipple wrote: It appears as though the user method only returns a value after successful authentic

Re: mod perl

2007-09-24 Thread Matthew Whipple
It appears as though the user method only returns a value after successful authentication while you're trying to get it before. George wrote: > Hello All, > > I'm having a problem with modperl and I can't figure out if it's my > stupiditry or modperls'. I'd love somebody with some modperl foo to

Re: Mod Perl Helper Functions

2004-10-06 Thread Paul Johnson
On Tue, Oct 05, 2004 at 02:25:08PM -0700, James Taylor wrote: > Here's a better example of something that actually might serve a bit > more purpose along with the error I'm getting for THIS > particular example. > > sub genrand { > my [EMAIL PROTECTED]; my $r; I'm not sure that this will solv

Re: Mod Perl Helper Functions

2004-10-05 Thread James Taylor
Bob Showalter wrote: FWIW, That example works OK for me under Apache 1.3.31, mod_perl 1.29 when I run under Apache::Registry. I had to add a declaration for %somehash, but otherwise it runs without error. Is main.pl running under Apache::Registry, or is it a PerlHandler or some other type of handle

RE: Mod Perl Helper Functions

2004-10-05 Thread Bob Showalter
James Taylor wrote: > I posted this to the mod_perl list 2 days ago, but it seems a bit > inappropriate there as the discussion is much more > advanced than my question... That and I haven't gotten a response, so > sorry for the crosspost :) > > I'm running apache 1.3.x with the associated version