Tim -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line.
That is bad, because it breaks threading. When you reply to a message, your mail client generates a "References:" header that tells everyone to which posting(s) your posting refers. A good mail client uses this information to build a "thread tree" of the postings so that it is easy to see just how they relate to each other. With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread even though it is completely unrelated. Always do a fresh post when you want to start a new thread. That means that you do not select any sort of "Reply" when you start your message. You can save the list address in your address book (or equivalent) for convenience. ...and then Tim Traver said... % % Hi all, % % ok, I am writing an apache module that dynamically figures out virtual host % variables for data locations for my users. Interesting. Where does it get its info? Probably from a database or config file or such? [Just to make sure I have the picture right... The other option would be from Apache, but I think you're saying that you're setting apache vars rather than reading them.] % % 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. Right. The PHP manual backs that up, too: There are two differences between the Admin values and the non admin values: * Admin values (or flags) can only appear in the server-wide Apache configuration files (e.g., httpd.conf). * Standard values (or flags) cannot control certain PHP directives, for example: safe mode (if you could override safe mode settings in .htaccess files, it would defeat safe mode's purpose). In contrast, Admin values can modify the value of any PHP directive. So no setting these from the PHP side. % % 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 ? The only thing that occurs to me -- and it would be none too easy to secure, mind you -- is having your script write to some /path/to/file which is included by the main httpd.conf file and then reload httpd. Very ugly. Since you're writing a module, though, you could probably look into the mod_php4 source and see how it gets its settings; surely the httpd.conf file structure, after parsing, is just a data structure that is read as needed, and you could thus probably intercept that call. % % Thanks, % % Tim. HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature