Re: auto_prepend/append: does the PHP engine cache the

From: Date: Mon, 30 Sep 2002 14:57:39 +0000
Subject: Re: auto_prepend/append: does the PHP engine cache the
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-88783@lists.php.net to get a copy of this message
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.

« previous php.dev (#88783) next »