Reply to Re: Does a lower php.ini replace an upper php.ini in the directory tree ? Activation in .htaccess necessary ?

Your name:

Reply:


Posted by AnrDaemon on 10/27/07 09:51

Greetings, Lars Willich.
In reply to Your message dated Saturday, October 27, 2007, 13:18:44,

LW> As far as I know I can override the php settings for a certain branch of the whole directory tree
LW> by putting a additional, new php.ini in this directory.

LW> Is this true ?

AFAIK, it was removed some builds ago to avoid unpredictable results.

LW> If I assign in this new php.ini only a new value to 1 (!) php variable are then all the
LW> other php parameter values taken from the next php.ini when I go towards the root of
LW> the directory tree? Or - otherwise - are default built-in values from PHP taken in this case ?

Default, because PHP read only single INI file.

LW> Do I have to do something else to activate this new php.ini (e.g. specify something in the
LW> .htaccess file) ?

Hm. Please tell me why You bothering with PHP.ini if You using PHP as web
scripting engine?
Install PHP as Apache module and use httpd.conf/.htaccess to control it's
behaviour.
Use php-apache2handler.ini or php-apache2filter.ini (depends on which SAPI You
use) to create default environment.


--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

[Back to original 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

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