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:
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
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
3 matches
Mail list logo