Re: programatically determining path to php.ini ?

From: Date: Wed, 29 Jun 2005 21:35:57 +0000
Subject: Re: programatically determining path to php.ini ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-217862@lists.php.net to get a copy of this message
I think this is a better solution than parsing phpinfo() output: realpath( get_cfg_var ( "cfg_file_path" )); - Greg On Wed, 29 Jun 2005 10:51:27 -0700, Greg Donald <destiney@gmail.com> wrote:
On 6/29/05, gk <gk@proliberty.com> wrote:
I have not been able to find any way of determining the path to the current php.ini file, programatically, from within a running script. The only hack I can think of is to parse the ouput of phpinfo().
php -r 'system( "php -i|grep ini" );'
Configuration File (php.ini) Path => /etc/php.ini


« previous php.general (#217862) next »