You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stas Bekman <st...@stason.org> on 2003/08/23 19:33:14 UTC

ap_document_root(request_rec *r) /* Don't use this! */

ap_document_root is declared as:

/**
  * Retrieve the document root for this server
  * @param r The current request
  * @warning Don't use this!  If your request went through a Userdir, or
  * something like that, it'll screw you.  But it's back-compatible...
  * @return The document root
  * @deffunc const char *ap_document_root(request_rec *r)
  */
AP_DECLARE(const char *) ap_document_root(request_rec *r);

If you warn not to use it, what should be used instead?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com