Re: global variables without sessions on apache
| From: | Justin French | Date: | Wed, 05 Jun 2002 14:28:19 +0000 |
| Subject: | Re: global variables without sessions on apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100706@lists.php.net to get a copy of this message | ||
I'm not sure about at a htaccess level, but at a php.ini level I believe you
can set a file to "always include" at the top of every php page. This file
could simply be:
<?
$var1 = "foo";
$var2 = "bah";
?>
Not sure on the specifics, but it was discussed on the list in the last two
weeks, and i'm sure there is documentation for the php.ini file IN the the
php.ini file, and on the website.
Justin French
on 05/06/02 10:40 PM, Zac Hillier (zac@affectors.net) wrote:
> Hi,
>
> 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
>