You are here: Re: Per-server PHP config override « PHP Programming Language « IT news, forums, messages
Re: Per-server PHP config override

Posted by Jonathan N. Little on 07/11/06 16:38

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация