Re: [PHP] Conditional Include

2004-03-17 Thread Jason Wong
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

[PHP] Conditional Include

2004-03-17 Thread Andreas Brunschweiler
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

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:

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

[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