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

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
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" <[EMAIL PROTECTED]> Newsgroups: php.g