Re: php.ini: how to load different ini file depending on host?
| From: | Justin French | Date: | Mon, 20 Jan 2003 03:31:47 +0000 |
| Subject: | Re: php.ini: how to load different ini file depending on host? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132203@lists.php.net to get a copy of this message | ||
You can override parts of your php.ini on a per-directory level with a
.htaccess file...
eg:
<IfModule mod_php4.c>
php_flag register_globals off
php_flag magic_quotes_gpc on
php_flag magic_quotes_runtime on
php_flag magic_quotes_sybase on
</IfModule>
Justin French
on 20/01/03 2:14 PM, Jean-Christian Imbeault (jc@mega-bucks.co.jp) wrote:
> Timothy Hitchens ) wrote:
>> Inside each of the Virtual Host defs you can put most of the php_flag
>> etc settings just like:
>
>
> Oops .. I forgot to mention that these two website do *not* have
> different IP addresses. Actually these are two testing website on my
> local LAN.
>
> What I have is to have a different php.ini loaded depending on wether
> the user goes to:
>
> http://192.168.254.1/test1
> or
> http://192.168.254.1/test2
>
> I had read up on the Virtual Host directives put it didn't seem to be
> applicable ... Could I do the same thing you suggested using the apache
> <Directory> directive?
>
> Thanks,
>
> Jc
>