Re: Re: ini_get

From: Date: Mon, 07 Jun 2004 17:22:33 +0000
Subject: Re: Re: ini_get
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-187816@lists.php.net to get a copy of this message
Ben Ramsey wrote:
JN> ini_get() will return the current value for the ini_setting... JN> doesn't matter if it's from the php.ini, ini_set() or a JN> .htaccess file. All right. Clue me in here. How can an .htaccess file set/modify the values of php.ini? I wasn't aware that you could do that.
Say I want to set my include_path to something else, but don't want to have to add ini_set to every file in the site. I create an .htaccess file in the top level directory where I want the change made, with this line... php_value include_path ".:/path/to/new/include/directory" You can also do this in the Apache httpd.conf, the only difference being that a change to the httpd.conf requires a restart of Apache, and an .htaccess takes effect right away. It doesn't physically overwrite the php.ini file, just changes the value of the setting. You can do this for all settings that you can change with ini_set() -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#187816) next »