gozer       2004/10/04 12:27:36

  Modified:    src/docs/2.0/api/Apache RequestUtil.pod
  Log:
  $r->document_root can now be changed when safe to do so
  
  Revision  Changes    Path
  1.27      +11 -0     modperl-docs/src/docs/2.0/api/Apache/RequestUtil.pod
  
  Index: RequestUtil.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/RequestUtil.pod,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- RequestUtil.pod   9 Sep 2004 20:19:49 -0000       1.26
  +++ RequestUtil.pod   4 Oct 2004 19:27:36 -0000       1.27
  @@ -24,6 +24,9 @@
     # get server docroot
     $docroot = $r->document_root();
     
  +  # set server docroot
  +  $r->document_root($new_root);
  +  
     # what are the registered perl handlers for a given phase
     my @handlers = @{ $r->get_handlers('PerlResponseHandler') || [] };
     
  @@ -276,6 +279,7 @@
   Retrieve the document root for this server
   
     $docroot = $r->document_root();
  +  $docroot = $r->document_root($new_root);
   
   =over 4
   
  @@ -283,6 +287,13 @@
   ( C<L<Apache::RequestRec object|docs::2.0::api::Apache::RequestRec>> )
   
   The current request
  +
  +=item opt arg1: C<$new_root>
  +
  +Sets the document root to a new value
  +
  +Note the L<limited functionality under threaded
  
+MPMs|docs::2.0::api::Apache::ServerRec/Limited_Functionality_under_Threaded_MPMs>.
   
   =item ret: C<$docroot> ( string )
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to