Re: global variables without sessions on apache

From: Date: Wed, 05 Jun 2002 18:12:58 +0000
Subject: Re: global variables without sessions on apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100751@lists.php.net to get a copy of this message
On Wed, 5 Jun 2002, Zac Hillier wrote: > Is it possible using php on our own apache server to create global > variables for virtual host without having to use session variables. > > We would like to have three variables that are constant for each virtual > host and that are available from every page, I thought it would be possible > with htaccess or http.conf but am struggling to find documentation for it. When you say "that are constant" do you mean that they never change or just that they are the same for each page at any given time? If you need dynamic variables shared between all your pages, you're going to have to either use a database or shared memory as documented at: http://www.php.net/manual/en/ref.sem.php miguel

« previous php.general (#100751) next »