Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-25 Thread Mark Morley
> Care sharing what you did to fix it? On or offlist is fine. > > Jeremy Probably the same thing that the other fellow wound up doing. In src/main/util_script.c Apache explicitly adds a new DOCUMENT_ROOT value (among others) to the environment table. This effectively wipes out any DOCUMENT_ROOT

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-25 Thread Jeremy Johnstone
Care sharing what you did to fix it? On or offlist is fine. Jeremy On Thu, 2003-09-25 at 10:22, Mark Morley wrote: > > Then your not setting it correctly via your apache module. > > Actually I am setting it correctly, but as you say... > > > FYI - If you using apache 1.3.x you CANNOT reset docu

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-25 Thread Mark Morley
> Then your not setting it correctly via your apache module. Actually I am setting it correctly, but as you say... > FYI - If you using apache 1.3.x you CANNOT reset document > root. DOCUMENT_ROOT is set at a low level of initial child request > startup. Your third party module isnt at a low enou

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-25 Thread Chris Murley
Then your not setting it correctly via your apache module. FYI - If you using apache 1.3.x you CANNOT reset document root. DOCUMENT_ROOT is set at a low level of initial child request startup. Your third party module isnt at a low enough level to do this. I kow this because my company needed the

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Rasmus Lerdorf
On Wed, 24 Sep 2003, Mark Morley wrote: > > This doesn't really have anything to do with PHP. You are writing an > > Apache module. You simply have to change the doc_root before Apache gets > > to the content handling phase of the request_rec. And to change the > > doc_root I think you'd just fi

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Mark Morley
> This doesn't really have anything to do with PHP. You are writing an > Apache module. You simply have to change the doc_root before Apache gets > to the content handling phase of the request_rec. And to change the > doc_root I think you'd just fiddle with conf->ap_document_root and it > should

Re: [PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread Rasmus Lerdorf
On Wed, 24 Sep 2003, Mark Morley wrote: > 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_e

[PHP-DEV] Overriding $DOCUMENT_ROOT in an Apache Module

2003-09-24 Thread 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 Apach