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" <[EMAIL PROTECTED]>
To: "Zac Hillier" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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
>
>
>


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

Reply via email to