David and all,

I apologize for not posting properly. I did not realize that headers were keeping track of the threads of this mailing list. I will make sure I don't do it again.

I am actually simply using the Host header to make a dynamic path to its data location in my apache module.

Unfortunately, the mod_php4 modules is rather cryptic in how it does things, and it looks like it doesn't do any of the variable setups on a per-request basis, so it would be difficult to track where it puts that information, but I guess its the only place for me to look unless you or anyone else has a better idea of where I can tap in to make those kind of changes on the fly...

In case no one else got my message due to my fopaux, I have included a copy of my original message below.

To clarify, the goal is to set up some security variables like open_basedir...

Thanks,

Tim.

Hi all,

ok, I am writing an apache module that dynamically figures out virtual host
variables for data locations for my users.

I need to be able to set the php_admin_values for each request so that
those values get passed through to php and take effect for each request.

Normally, this would be static inside the apache conf file using the
php_admin_value directive.


Does anyone here know how I could set these variables dynamically ? Do I have to load the apache configuration tables and change it manually ? or can I set a particular environment variable that gets read by php ?

Thanks,

Tim.


SimpleNet's Back ! http://www.simplenet.com

Reply via email to