RE: mod_perl mod_php

2002-09-01 Thread grant stevens
all- Interesting topic, to be sure. Although no one touched on the relationship I almost always see between Perl and PHP: Rapid Application Deployment. You can get a massively complex application out to users as a beta much more quickly with PHP (Sorry Perl), additionally capitalizing on

Re: Apache::PerlRun weird behavior?

2002-09-01 Thread Perrin Harkins
valerian wrote: So the weird thing is that it runs fine the first time, but when I reload the page, it doesn't show the variable I imported from My::Config Try changing this: use My::Config; to this: require My::Config; import My::Config; BEGIN blocks are only run once in

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
From: Stas Bekman [EMAIL PROTECTED] What happens if you do: $r-set_handlers('PerlAuthenHandler', 'Some::handler'); Either of these: $r-set_handlers('PerlAuthenHandler', 'Some::handler'); $r-set_handlers('PerlAuthenHandler', \Some::handler); Yeild: Can't set_handler with

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Geoffrey Young
Rodney Broom wrote: Hi all, I'm sure I'm just missing something, but I'm stumped. I've got an access handler that does some tests and then conditionaly does this: $r-push_handlers('PerlAuthenHandler', 'Some::handler'); return OK; Some::handler() starts by printing the current

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
From: Geoffrey Young [EMAIL PROTECTED] you probably don't have a Require directive in your httpd.conf for this particular Location. You're right, I don't. In fact, I can't. One of the things the access handler does is to look up the URI in a database, which happens at run time. (The

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Per Einar Ellefsen
At 21:05 01.09.2002, Rodney Broom wrote: Apache will not run the Authen or Authz phases unless there is a Require directive, no matter what you put onto the mod_perl handler stack. I sort of thought this myself, so I tried $r-dir_config-add('require', 'valid-user') in the access handler. No

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Rodney Broom
From: Per Einar Ellefsen [EMAIL PROTECTED] dir_config is the Perl{Set,Add}Var configuration... Yep, you're right. But I'm sort of grasping at straws at this point. You can just add that and let your handler decide regardless of the value of requires... Yes, but there are side effects:

SetEnvIf Directive

2002-09-01 Thread Pierre Vaudrey
I'm trying to build a web site on the built-in Apache server of a Mac OSX 10.1.5 machine . Extract of httpd.conf is : .. LoadModule setenvif_modulelibexec/httpd/mod_setenvif.so .. AddModule mod_setenvif.c .. # Customize behaviour based on the browser # IfModule mod_setenvif.c

Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn'twork

2002-09-01 Thread Stas Bekman
Rodney Broom wrote: From: Stas Bekman [EMAIL PROTECTED] What happens if you do: $r-set_handlers('PerlAuthenHandler', 'Some::handler'); Either of these: $r-set_handlers('PerlAuthenHandler', 'Some::handler'); $r-set_handlers('PerlAuthenHandler', \Some::handler); Yeild:

Re: SetEnvIf Directive

2002-09-01 Thread Stas Bekman
Pierre Vaudrey wrote: I'm trying to build a web site on the built-in Apache server of a Mac OSX 10.1.5 machine . Extract of httpd.conf is : .. LoadModule setenvif_modulelibexec/httpd/mod_setenvif.so .. AddModule mod_setenvif.c Pierre, this has nothing to do with mod_perl.

Re: Apache::PerlRun weird behavior?

2002-09-01 Thread Stas Bekman
Perrin Harkins wrote: valerian wrote: So the weird thing is that it runs fine the first time, but when I reload the page, it doesn't show the variable I imported from My::Config Try changing this: use My::Config; to this: require My::Config; import My::Config; BEGIN