Overriding $DOCUMENT_ROOT in an Apache Module

From: Date: Thu, 25 Sep 2003 01:07:29 +0000
Subject: Overriding $DOCUMENT_ROOT in an Apache Module
Groups: php.internals 
Request: Send a blank email to internals+get-4571@lists.php.net to get a copy of this message
I'm working on a custom mass hoting Apache module. I need to be able to set the $DOCUMENT_ROOT value on a per request basis. That is, I'd like to be able to set it in my module before the clients' scripts run (similar to how I use zend_alter_ini_entry to alter ini values). I've tried using Apache's ap_table_set call to define the environment variable, but PHP seems to clobber that and replace it. Any thoughts? Mark

« previous php.internals (#4571) next »