Re: Persisting data across handlers

2006-03-12 Thread Tom Schindl
Why does one have to create a APR::Brigade to pass a value? If I want to pass 42 I could simply access it, no need to create a Brigade or am I completely mistaken. Tom Philippe M. Chiasson wrote: > Vipul Ved Prakash wrote: > >>Thanks, Philippe. For some reason I thought I had to use Apache's >

Help trying to get perl script to run in Apach 1.3

2006-03-12 Thread Bill Warren
Hello, I running Debian Sarge with Apache 1.3 and Perl 5.8 and I trying to get a JabberChat from http://www.prowler-pro.com/jabberchat/ to run. I know that Apache and Perl are playing together because I dselected Gallery from http://gallery.sf.net installed and it works great. When I click

Re: Where's M_HEAD?

2006-03-12 Thread Arne Skjaerholt
Hi, All the Apache constants are available in the Apache2::Const module. See perldoc Apache2::Const for details on how to import symbols and so on. Arne :wq

Re: Modperl2 question

2006-03-12 Thread Foo Ji-Haw
There's a few recipes here: http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2 Would using t Apache2::Cookie work just as well?

Re: Persisting data across handlers

2006-03-12 Thread Foo Ji-Haw
Philippe M. Chiasson wrote: Vipul Ved Prakash wrote: Thanks, Philippe. For some reason I thought I had to use Apache's memory management abstractions for this. Out of curiosity, will using pnotes work just as well for your purpose?

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Foo Ji-Haw
Wow, a little tangent to the topic here: I didn't know that you can do this PerlResponseHandler Apache2::Const::OK Is that 'legal'? It's interesting to know, but I wouldn't know of a practical use for this trick. Another question: why do you use CGI::Cookie in place of Apache2::Cookie? Last qu

Re: Modperl2 question

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: There's a few recipes here: http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2 Would using t Apache2::Cookie work just as well? Apache2::Cookie is one of the glue modules for libapreq2. You have to install li

Re: Modperl2 question

2006-03-12 Thread Foo Ji-Haw
Apache2::Cookie is one of the glue modules for libapreq2. You have to install libapreq2 to get Apache2::Cookie. Ok. I am crazy about libapreq2 because it is a direct replacement to CGI. I thought this is the preferred way against continuing CGI (for performance reasons) in the modperl envir

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: Wow, a little tangent to the topic here: I didn't know that you can do this PerlResponseHandler Apache2::Const::OK Is that 'legal'? It's interesting to know, but I wouldn't know of a practical use for this trick. Specifying a return code for a handler pha

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Foo Ji-Haw
Hello Fred, Ok, the 12 layers of Apache is as cool as the OSI layers. Let's say that in my PerlAuthzHandler I verified the user via a cookie (given to the client during login). It sounds like double work to retrieve the user details again during the PerlResponseHandler phase (I have to do that

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: Hello Fred, Ok, the 12 layers of Apache is as cool as the OSI layers. Let's say that in my PerlAuthzHandler I verified the user via a cookie (given to the client You will want to use a PerlAuthenHandler to authenticate the user. during login). It sound

Re: Modperl2 question

2006-03-12 Thread Perrin Harkins
Foo Ji-Haw wrote: Ok. I am crazy about libapreq2 because it is a direct replacement to CGI. I thought this is the preferred way against continuing CGI (for performance reasons) in the modperl enviromment. Or am I missing something here? Some people have existing code using CGI::Cookie, or wan

Re: Modperl2 question

2006-03-12 Thread Foo Ji-Haw
Some people have existing code using CGI::Cookie, or want their new code to work under CGI. The performance difference is pretty small in any significant web app. Hey Perrin, So what you are saying, is that it is generally fine in a production environment to continue using CGI::Cookie? But

Re: Modperl2 question

2006-03-12 Thread Perrin Harkins
Foo Ji-Haw wrote: So what you are saying, is that it is generally fine in a production environment to continue using CGI::Cookie? Yes. But it does not infer that using CGI is just as well right? The CGI.pm module? That's fine too. - Perrin

Re: Modperl2 question

2006-03-12 Thread Foo Ji-Haw
That's odd. I thought I remembered reading up about discouraging the use of the CGI module in optimising modperl. The rationale (if I remembered right) is that CGI depends on the %ENV, which populating it for every call is an effort. The recommended way is to turn of SetupEnv, and grab as much s

Re: Modperl2 question

2006-03-12 Thread Perrin Harkins
Foo Ji-Haw wrote: That's odd. I thought I remembered reading up about discouraging the use of the CGI module in optimising modperl. The rationale (if I remembered right) is that CGI depends on the %ENV, which populating it for every call is an effort. The recommended way is to turn of SetupEnv,

Re: Modperl2 question

2006-03-12 Thread Foo Ji-Haw
Sure, libapreq and its included modules are the fastest way to parse parameters and handle cookies. However, hardly anyone needs that speed. Most people are spending all of their time talking to a database or doing other I/O tasks, or have pretty minimal web traffic, or both. That's true. I

Re: Help trying to get perl script to run in Apach 1.3

2006-03-12 Thread Tom Schindl
Bill Warren wrote: > Hello, > > I running Debian Sarge with Apache 1.3 and Perl 5.8 and I trying to get > a JabberChat from http://www.prowler-pro.com/jabberchat/ to run. I > know that Apache and Perl are playing together because I dselected > Gallery from http://gallery.sf.net installed and it