Re: global variables w/o access to global php.ini

From: Date: Thu, 28 Feb 2002 04:16:17 +0000
Subject: Re: global variables w/o access to global php.ini
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-86515@lists.php.net to get a copy of this message
In article <Pine.WNT.4.44.0202272245210.1448-100000@associate>, luomat@peak.org (Timothy J. Luoma) wrote: > > > I have a virtual domain under Apache and do not have access to the global > > > php.ini file > > > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > > > Is there something similar for PHP? > > > > Forget "similar", you can set PHP config options in the .htaccess file > > itself. See <http://php.net/configuration>. > > Thanks for your reply. > > I'm afraid I did a poor job of asking my question(*). My apologies. > > I would like to set some variables of my own creation (ie $DOMAIN_NAME) on > a global basis. In that case, the "auto_prepend_file" config option may be of interest. It's described on the page previously mentioned. -- CC

« previous php.general (#86515) next »