On Wednesday 17 March 2004 17:33, Andreas Brunschweiler wrote:
> In this code, the include file is always parsed, even if $includefiles is
> set to 0. Even the files which are 'required()' inside incfile.php are
> parsed (observed with the program Filemon, which registers file access). I
> tried v
Hello
When I want to include a php file only conditionally, I use include instead
of require. At the moment I am trying to solve the following problem. I
haven't found anything in the news archive, perhaps I searched with the
wrong phrase...
code snippet-
if(...) {
... //some nes
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:
]>
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
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
5 matches
Mail list logo