Re: identifying mod_perl process at runtime

2006-02-07 Thread Daniel McBrearty
Thanks all. The ENV var is indeed the best way. On 2/7/06, Frank Wiles <[EMAIL PROTECTED]> wrote: On Tue, 7 Feb 2006 06:58:24 +0100Daniel McBrearty <[EMAIL PROTECTED]> wrote:> If I have a library which is used for both mod_perl and standard cgi > processes, and I want to know at runtime which, how

Re: identifying mod_perl process at runtime

2006-02-07 Thread Frank Wiles
On Tue, 7 Feb 2006 06:58:24 +0100 Daniel McBrearty <[EMAIL PROTECTED]> wrote: > If I have a library which is used for both mod_perl and standard cgi > processes, and I want to know at runtime which, how can I do that? The environment variable $ENV{MOD_PERL} should be set if it is running unde

Re: identifying mod_perl process at runtime

2006-02-06 Thread William A. Rowe, Jr.
Daniel McBrearty wrote: If I have a library which is used for both mod_perl and standard cgi processes, and I want to know at runtime which, how can I do that? does ARGV[0] tell you? I'd expect it to be 'httpd' for apache/modperl.

identifying mod_perl process at runtime

2006-02-06 Thread Daniel McBrearty
If I have a library which is used for both mod_perl and standard cgi processes, and I want to know at runtime which, how can I do that? thanks Daniel-- Daniel McBreartyemail : danielmcbrearty at gmail.comwww.engoi.com : the multi - language vocab trainerBTW : 0873928131