Re: global variables without sessions on apache

From: Date: Wed, 05 Jun 2002 22:05:08 +0000
Subject: Re: global variables without sessions on apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100822@lists.php.net to get a copy of this message
Miguel, I mean that the variables will never change per Virtual host but that the site is a template for many sites and these vars are part of the distinction for each site / Virtual Host. So far the suggestions of using the auto-prepend in the php.ini have not seemed to cater for this. Can you help further? -- ORIGINAL MESSAGE -- 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. Thanks, Zac ----- Original Message ----- From: "Miguel Cruz" <mnc@stoic.net> To: "Zac Hillier" <zac@affectors.net> Cc: <php-general@lists.php.net> Sent: Wednesday, June 05, 2002 7:12 PM Subject: Re: [PHP] global variables without sessions on apache > 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 (#100822) next »