Re: ENV vars
| From: | Jochem Maas | Date: | Tue, 24 Oct 2006 08:15:02 +0000 |
| Subject: | Re: ENV vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243562@lists.php.net to get a copy of this message | ||
jekillen wrote:
> Hello again;
> I'm wondering if it is possible to create an $_ENV var with a php
> script running under a web server. I'm not sure where to look
> in the manual or other documentations for this. Isn't there a
> set_env() function or something like it? (would apply to php 4 0r 5x)
http://php.net/set_env
http://php.net/mailinglist_credit_depletion
> Thanks in advance.
<VirtualHost _default_:80>
#blablablabla
#use rewrite engine to determine/set stuff that ends up in $_SERVER
RewriteEngine On
RewriteLogLevel 0
RewriteMap dom2ver txt:/usr/local/beeldspraak/files/bcms/rewritemap/dom2ver.txt
RewriteRule ^.*$ -
[C,E=LIB_VERSION:${dom2ver:%{SERVER_NAME}|${dom2ver:LIB_DEFAULT}}]
RewriteRule ^.*$ - [C,E=VHOSTS_ROOT:/var/www/vhosts]
</VirtualHost>
> JK
>