|
Posted by Richard Levasseur on 07/11/06 23:13
Jonathan N. Little wrote:
> Ricky Romaya wrote:
> > Hi,
> >
> > I'm using Apache webserver 1.3.27 and PHP 4.3.0. On my development machine,
> > I have created several virtual hosts. AFAIK PHP configuration is stored in
> > php.ini. I want some of the virtual hosts override some of PHP
> > configuration, while the rest retain the configuration in the php.ini. How
> > can I achieve this? I'm thinking a similar approach like Apache's
> > httpd.conf and .htaccess, but how to do it with PHP.
>
> You can put PHP settings in the .htaccess, depending on your Apache
> configuration, example:
>
> php_flag allow_call_time_pass_reference off
>
> see:
>
> http://www.php.net/manual/en/configuration.changes.php
> PHP: How to change configuration settings - Manual
>
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com
You can also use the php_* directives in the virtual host config
(<VirtualHost> tags), though this requires a restart of apache for the
changes to take effect, unlike .htaccess
[Back to original message]
|