Re: Conditional include based on virtual host ?

From: Date: Fri, 26 Jan 2001 23:48:05 +0000
Subject: Re: Conditional include based on virtual host ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36928@lists.php.net to get a copy of this message
Should work, I think. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "Alain Fontaine" <alain@simonpils.thisnothere.com> Newsgroups: php.general Sent: Friday, January 26, 2001 10:36 AM Subject: [PHP] Conditional include based on virtual host ? > Hello, > > I have developed a large web application the contents of which (language and > data) depends on the URL the site is accessed from, e.g. en.site.com would > display the "english" site, and "fr.site.com" would display the french site, > and so on. > > The whole thing is "parameterized" through a set of global variables (or > defines) that reside in a file called settings.php. The question is: how can > I include the "right" settings.php file, depending on the virtual host used > to access the site? This is an Apache server on Linux, and I thought setting > the "include_path" for every virtual host in the <vhosts> section of > httpd.conf would maybe do the trick ? > > Thanks ! > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36928) next »