Re: php ini question
| From: | Christoph Becker | Date: | Wed, 13 May 2015 00:17:46 +0000 |
| Subject: | Re: php ini question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324892@lists.php.net to get a copy of this message | ||
Jeffry Killen wrote:
> Now I am looking at phar archiving and see the stated necessity
> of having the php.ini directive: phar.readonly set to Off (or false, or
> 0 or other 'falsy' value)
That is, however, not necessary, if you use the PharData class only.
> So, I look in output from phpinfo() to see if there is a php.ini file
> to be used, by name, and I cannot find one, not even php.ini.default.
> The only indication is the directory location of ini files, /etc:
> php.ini.default
> is the only explicit php.ini file there.
Hm, when I call phpinfo() I see the following four related rows (one
directly below the other):
* Configuration File (php.ini) Path
* Loaded Configuration File
* Scan this dir for additional
* Additional .ini files parsed
Anyhow, you can get the path of the php.ini files in use by calling
php_ini_loaded_file() and php_ini_scanned_files().
--
Christoph M. Becker