Herbert Rosmanith wrote:
>>>You want to load Apache::RequestRec and then it'll show up.
>>
>
> another issue: when I "use Apache::RequestRec();" the module
> will not start under modperl-1.0.
why should it? It's a 2.0 module. If you want to have your startup file
work for both consider using:
=head2 MODPERL2 Define
When running under mod_perl 2.0 a special configuration define
C<MODPERL2> is enabled internally, as if the server had been started
with C<-DMODPERL2>. For example this can be used to write a
configuration file which needs to do something different whether it's
running under mod_perl 1.0 or 2.0:
<IfDefine MODPERL2>
# 2.0 configuration
</IfDefine>
<IfDefine !MODPERL2>
# else
</IfDefine>
From within Perl code this can be tested with
C<Apache::exists_config_define()>, for example:
if (Apache::exists_config_define("MODPERL2")) {
# some 2.0 specific code
}
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]