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 ([EMAIL PROTECTED]) 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php