How can I access the Apache Request object from a Perl package that I am
calling from a Perl Authorization handler?
Example:
Package TestPackage.pm
---
Package Apache::TestPackage.pm
@EXPORT qw ($home_url);
my $home_url = "http:" . "//" . $ENV{'SERVER_NAME'};
1;
* Michael A. Nachbaur ([EMAIL PROTECTED]) [010310 14:25]:
Since today seems to be "The Day of the Off Topic(tm)", I thought I'd jump
in with my question.
Is there a event messaging framework available for Perl, similar to JMS?
I'd like to be able to have an object registered as a handler
--
mod_perl digest
March 4, 2001 - March 10, 2001
--
Recent happenings in the mod_perl world...
Features
o
[EMAIL PROTECTED] (darren chamberlain) wrote:
I just found Apache::Storage URL:http://tangent.org/Apache-Storage/,
which will let you store complex data structures from httpd.conf:
# httpd.conf
ApacheStore o { "bar" = 1, "foo" = "com", "other" = 0 }
In your handler, do:
use Apache::Storage;
Ken Williams ([EMAIL PROTECTED]) said something to this effect on 03/12/2001:
[EMAIL PROTECTED] (darren chamberlain) wrote:
I just found Apache::Storage URL:http://tangent.org/Apache-Storage/,
which will let you store complex data structures from httpd.conf:
I wonder why I've never heard of
-Original Message-
From: darren chamberlain [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 12:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Passing Objects with PerlSetVar
Ken Williams ([EMAIL PROTECTED]) said something to
this effect on 03/12/2001:
[EMAIL PROTECTED]
-Original Message-
From: Stas Bekman [SMTP:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 11:17 PM
To: Raphael Arlitt
Cc: [EMAIL PROTECTED]
Subject: Re: mod_perl and Apache::SIG "User pressed Stop button" Case
On 11 Mar 2001, Raphael Arlitt wrote:
Hi,
I need
Sorry for taking a while to get back to this, road trips
can be good at interrupting the flow of life.
It depends on the application. I typically use a few
instances of open() for the sake of simplicity, but I have also had
decent luck with IPC::Open(2|3). The only problems
Hi all ...
didnt know where else to send this so subscribed just now.
When compiling Apache 1.3.19 with mod_perl 1.25 and mod_ssl 2.8.1
I get the following:
...
=== src/modules/perl
gcc -fpic -O3 -I/usr/local/lib/perl5/5.00503/alpha-dec_osf/CORE -ansi
-I/usr/local/include -DLANGUAGE_C
Just trying to get a consensus on people's usage of the apache request
object in Registry(NG)* scripts.
I usually make the $r available as a global variable so I can use in
various subroutines without passing it around constantly. All scripts on
site start with:
use vars qw(%input $r);
$r =
Is it possible to retreive what was printed in the PerlHandler phase (what
was called w/ $r-print()), in
any of the post PerlHandler phases?
Thanks.
[EMAIL PROTECTED] (JR Mayberry) wrote:
Is it possible to retreive what was printed in the PerlHandler phase (what
was called w/ $r-print()), in
any of the post PerlHandler phases?
Perhaps you want something like Apache::Filter?
---
a way to do it transparently...(ie: not changing code)
i realize there are ways to do it otherwise..
[EMAIL PROTECTED] (JR Mayberry) wrote:
Is it possible to retreive what was printed in the PerlHandler phase
(what was called w/ $r-print()), in any of the post PerlHandler phases?
[EMAIL PROTECTED] (JR Mayberry) wrote:
a way to do it transparently...(ie: not changing code)
i realize there are
When I upgraded from
Solaris Apache/1.3.14 (Unix) mod_perl/1.24_01
to
Solaris Apache/1.3.17 (Unix) mod_perl/1.25
the following code in my debugging httpd.conf broke:
Perl
sub WWW_DIR () { $ENV{'HOME'} . '/www' ; } # this sub will persist to next
Perl
... more code, using WWW_DIR sometimes
actually - with recent changes to the apache core, that patch doesn't work
any more. we're working on a real fix - but in the mean time this one may
as well be removed.
sterling
_
Index: src/modules/perl/mod_perl.c
On Mon, 12 Mar 2001, Daniel wrote:
Just trying to get a consensus on people's usage of the apache request
object in Registry(NG)* scripts.
I usually make the $r available as a global variable so I can use in
various subroutines without passing it around constantly. All scripts on
site
On Mon, 12 Mar 2001, Khachaturov, Vassilii wrote:
When I upgraded from
Solaris Apache/1.3.14 (Unix) mod_perl/1.24_01
to
Solaris Apache/1.3.17 (Unix) mod_perl/1.25
the following code in my debugging httpd.conf broke:
Perl
sub WWW_DIR () { $ENV{'HOME'} . '/www' ; } # this sub will persist
Read it. It still doesn't address my questions
- why this stopped working with
the new mod_perl+apache. From the docs, rather, I'd expect a
routine or a variable defined in one Perl section persist to the other.
While I can't use global vars (they try to get tied to the non-existing
config.
On Mon, 12 Mar 2001, Khachaturov, Vassilii wrote:
Read it. It still doesn't address my questions
- why this stopped working with
the new mod_perl+apache. From the docs, rather, I'd expect a
routine or a variable defined in one Perl section persist to the other.
While I can't use global vars
At 12:26 PM -0500 3/12/01, Khachaturov, Vassilii wrote:
When I upgraded from
Solaris Apache/1.3.14 (Unix) mod_perl/1.24_01
to
Solaris Apache/1.3.17 (Unix) mod_perl/1.25
the following code in my debugging httpd.conf broke:
Perl
sub WWW_DIR () { $ENV{'HOME'} . '/www' ; } # this sub will persist
And, of course, I am using Stas' patent with 'use constant' now...
-Original Message-
From: Khachaturov, Vassilii
Sent: Tuesday, March 13, 2001 2:19 AM
To: 'Steve Leibel'
Cc: [EMAIL PROTECTED]
Subject: RE: Perl incompat. with apache/mod_perl upgrade
I've been planning on doing this
dougm 01/03/12 21:24:20
modperl-2.0/xs/APR/Socket - New directory
dougm 01/03/12 23:29:03
Modified:xs/Apache/Filter Apache__Filter.h
xs/maps apache_functions.map
Log:
add output filter "stream" interface read/print methods
Revision ChangesPath
1.2 +53 -0 modperl-2.0/xs/Apache/Filter/Apache__Filter.h
dougm 01/03/12 23:50:24
Modified:xs/Apache/RequestUtil Apache__RequestUtil.h
xs/maps apache_functions.map
Log:
the protocol module helpers are functions, not #defines
Revision ChangesPath
1.2 +10 -8
25 matches
Mail list logo