Re: [PHP] Conditional include based on virtual host ?

2001-01-27 Thread Markus Fischer
You could use $HTTP_HOST: if( stristr( $HTTP_POST, "fr.domain.com")) $lang = "fr"; Just put such in your settings.php file you allready include. Works for me. Any other ideas very welcome too :) m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail:

[PHP] Conditional include based on virtual host ?

2001-01-26 Thread Alain Fontaine
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

Re: [PHP] Conditional include based on virtual host ?

2001-01-26 Thread Richard Lynch
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 &quo