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
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
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
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
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
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
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:
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
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:
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.
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
11 matches
Mail list logo