Hi,
> > What about setting server variables? You can set them once, they stay in
> > memory and your scripts can read them. Just an idea...
>
> Hum ... very interesting! I have no idea how to set Apache server vars
> but I'll definitely look into it!
We do the following in our Apache virtual hosts:
<VirtualHost *>
ServerName www.example.com
DocumentRoot /var/www/www.example.com/
SetEnv city apeldoorn
SetEnv region_id 97
SetEnv module_name index
</VirtualHost>
You can then access these from PHP:
<?php
echo $_SERVER['city'];
?>
Good luck,
Sander.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php