geoff 2004/03/24 06:50:59 Modified: src/docs/2.0/user/config config.pod Log: undo revision 1.55 Revision Changes Path 1.60 +5 -5 modperl-docs/src/docs/2.0/user/config/config.pod Index: config.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/config/config.pod,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- config.pod 2 Mar 2004 20:20:24 -0000 1.59 +++ config.pod 24 Mar 2004 14:50:59 -0000 1.60 @@ -1202,11 +1202,11 @@ </IfDefine> If you need to access any of the startup defines in the Perl code you -use C<Apache::Server::exists_config_define>. For example in a startup file you +use C<Apache::exists_config_define>. For example in a startup file you can say: use Apache::ServerUtil (); - if (Apache::Server::exists_config_define("PERLDB")) { + if (Apache::exists_config_define("PERLDB")) { require Apache::DB; Apache::DB->init; } @@ -1214,7 +1214,7 @@ For example to check whether the server has been started in a single mode use: - if (Apache::Server::exists_config_define("ONE_PROCESS")) { + if (Apache::exists_config_define("ONE_PROCESS")) { print "Running in a single mode"; } @@ -1234,9 +1234,9 @@ </IfDefine> From within Perl code this can be tested with -C<Apache::Server::exists_config_define()>, for example: +C<Apache::exists_config_define()>, for example: - if (Apache::Server::exists_config_define("MODPERL2")) { + if (Apache::exists_config_define("MODPERL2")) { # some 2.0 specific code }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]