Apache request object

2001-03-12 Thread Gene Dascher
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;

Re: [OT] JMS-like event framework for Perl

2001-03-12 Thread Chris Winters
* 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

[DIGEST] mod_perl digest 03/10/01

2001-03-12 Thread Geoffrey Young
-- mod_perl digest March 4, 2001 - March 10, 2001 -- Recent happenings in the mod_perl world... Features o

Re: Passing Objects with PerlSetVar

2001-03-12 Thread Ken Williams
[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;

Re: Passing Objects with PerlSetVar

2001-03-12 Thread darren chamberlain
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

RE: Passing Objects with PerlSetVar

2001-03-12 Thread Geoffrey Young
-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]

RE: mod_perl and Apache::SIG User pressed Stop button Case

2001-03-12 Thread Dave . Clarke
-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

Re: mod_perl shared memory with MM

2001-03-12 Thread Sean Chittenden
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

mod_perl.c:517: unterminated string or character constant

2001-03-12 Thread Bill . Melvin
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

$r and Registry(NG)* scripts

2001-03-12 Thread Daniel
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 =

getting content post PerlHandler phase

2001-03-12 Thread JR Mayberry
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.

Re: getting content post PerlHandler phase

2001-03-12 Thread Ken Williams
[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? ---

to clarify (getting what was printed in PerlHandler)

2001-03-12 Thread JR Mayberry
a way to do it transparently...(ie: not changing code) i realize there are ways to do it otherwise..

Re: to clarify (getting what was printed in PerlHandler)

2001-03-12 Thread Ken Williams
[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

Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Khachaturov, Vassilii
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

Re: mod_perl.c:517: unterminated string or character constant

2001-03-12 Thread sterling
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

Re: $r and Registry(NG)* scripts

2001-03-12 Thread Stas Bekman
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

Re: Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Stas Bekman
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

RE: Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Khachaturov, Vassilii
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.

RE: Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Stas Bekman
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

Re: Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Steve Leibel
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

RE: Perl incompat. with apache/mod_perl upgrade

2001-03-12 Thread Khachaturov, Vassilii
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

cvs commit: modperl-2.0/xs/APR/Socket - New directory

2001-03-12 Thread dougm
dougm 01/03/12 21:24:20 modperl-2.0/xs/APR/Socket - New directory

cvs commit: modperl-2.0/xs/maps apache_functions.map

2001-03-12 Thread dougm
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

cvs commit: modperl-2.0/xs/maps apache_functions.map

2001-03-12 Thread dougm
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