Re: Sharing data between many requests

2007-09-26 Thread André Warnier
Michael Peters wrote: André Warnier wrote: My doubts focus (mainly) on the following issues - wether or not I *can* declare and initialise some object e.g. in the PerlChildInitHandler, and later access that same object in the request handlers. Yes. - also, if later from the request handler,

Re: Sharing data between many requests

2007-09-26 Thread Perrin Harkins
On 9/26/07, André Warnier <[EMAIL PROTECTED]> wrote: > - For portability and ease-of-installation reasons, I would like to > avoid the usage of an external DBMS. I think you're making a mistake there. An RDBMS is the easiest way to achieve what you want. There is no simple way to share a Perl da

Re: Sharing data between many requests

2007-09-26 Thread Michael Peters
André Warnier wrote: > My doubts focus (mainly) on the following issues > - wether or not I *can* declare and initialise some object e.g. in the > PerlChildInitHandler, and later access that same object in the request > handlers. Yes. > - also, if later from the request handler, I would call a m

Re: Sharing data between many requests

2007-09-26 Thread Jim Brandt
André Warnier wrote: - if there is a mandatory difference between threaded/non-threaded mp2 perl code, can I check at run-time under which environment I'm running, and condition which code is executed accordingly ? To answer one question, you can use the Apache2::MPM module to find out what

Sharing data between many requests

2007-09-26 Thread André Warnier
For quite a while now, I have been mulling the following issue, without ever seeming to get the final, bestest and greatest solution : how to best share a data structure over many Apache2 requests, in a multi-platform context. My doubts have to do with what exactly can be shared and how between