Re: ENV vars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux