$DOCUMENT_ROOT and mod_userdir

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
When you publish a website in /home/username/public_html and make it
availabe with the mod_userdir apache module, it can be accessed via
http://server/~username/. In that case though, the $DOCUMENT_ROOT
variable is still e.g. /var/www/html. Is there another variable or a trick
to get /home/username/public_html instead?


Browse securily and fast with the Mozilla Firefox web browser
http://www.spreadfirefox.com/?q=affiliates&amp ;id=617&t=1

Re: $DOCUMENT_ROOT and mod_userdir

*** Frederik Himpe escribió/wrote (Wed, 22 Sep 2004 15:24:18 GMT):
Quoted text here. Click to load it

Maybe playing around with $_SERVER['PHP_SELF'] and basedir().

-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions

Re: $DOCUMENT_ROOT and mod_userdir

Quoted text here. Click to load it

Apache transmits DOCUMENT_ROOT as environmental variable (sp?) to PHP, so
maybe you can override it using SetEnv?

Simon Stienen <http://dangerouscat.net <http://slashlife.de
»What you do in this world is a matter of no consequence,
 The question is, what can you make people believe that you have done.«
-- Sherlock Holmes in "A Study in Scarlet" by Sir Arthur Conan Doyle

Site Timeline