Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54326 invoked by uid 1010); 25 Sep 2003 01:10:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54302 invoked by uid 1007); 25 Sep 2003 01:10:01 -0000 To: internals@lists.php.net Date: Wed, 24 Sep 2003 18:07:29 -0700 Organization: Islandnet.com Content-type: text/plain MIME-Version: 1.0 User-Agent: Grapevine Web News ALPHA (http://grapevine.islandnet.com/) Message-ID: <011d6cb5bf19895465f9131efdc8da46@grapevine.islandnet.com> X-Tracking: 3F723FD1910E4B06FF0E450AFF0E4209FF0D400EF107450F X-Report-Abuse-To: news@islandnet.com X-NNRP-Cache: Grapevine 2.0 -- http://grapevine.islandnet.com/ X-Posted-By: 199.175.106.126 Subject: Overriding $DOCUMENT_ROOT in an Apache Module From: mark@islandnet.com (Mark Morley) 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